org.nodal.util
Class DoubleGetterUtil

java.lang.Object
  extended byorg.nodal.util.TxnMonitorableUtil
      extended byorg.nodal.util.GetterUtil
          extended byorg.nodal.util.DoubleGetterUtil
All Implemented Interfaces:
Getter, TxnHandler, TxnMonitorable

public abstract class DoubleGetterUtil
extends GetterUtil


Field Summary
 
Fields inherited from class org.nodal.util.GetterUtil
getterType
 
Fields inherited from class org.nodal.util.TxnMonitorableUtil
handlers
 
Constructor Summary
DoubleGetterUtil(Type t)
           
 
Method Summary
 java.lang.Object get()
          Recover the value of this Getter as an Object.
 byte getByte()
          Return the value of this Getter as a byte if possible
abstract  double getDouble()
          Return the value of this Getter as a double if possible
 float getFloat()
          Return the value of this Getter as a float if possible
 int getInt()
          Return the value of this Getter as an int if possible
 long getLong()
          Return the value of this Getter as a long if possible
 short getShort()
          Return the value of this Getter as a short if possible
 java.lang.String getString()
          Return the value of this Getter as a String.
 boolean valueEquals(java.lang.Object v)
          Compare this value with the argument.
 
Methods inherited from class org.nodal.util.GetterUtil
createPath, getBoolean, getChar, getNode, path, type
 
Methods inherited from class org.nodal.util.TxnMonitorableUtil
addNotifier, addTxnHandler, notifyInsertAfter, notifyInsertBefore, notifyRemoveKey, notifyRemoveRange, notifyReplaceRange, notifySetValue, removeNotifier, removeTxnHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nodal.model.TxnMonitorable
addTxnHandler, removeTxnHandler
 

Constructor Detail

DoubleGetterUtil

public DoubleGetterUtil(Type t)
Method Detail

getDouble

public abstract double getDouble()
Description copied from class: GetterUtil
Return the value of this Getter as a double if possible

Specified by:
getDouble in interface Getter
Overrides:
getDouble in class GetterUtil

get

public java.lang.Object get()
Description copied from class: GetterUtil
Recover the value of this Getter as an Object.

Must override to implement.

Specified by:
get in interface Getter
Specified by:
get in class GetterUtil

getString

public java.lang.String getString()
Description copied from class: GetterUtil
Return the value of this Getter as a String.

Unlike the other type-specific get methods, this must always succeed.

Specified by:
getString in interface Getter
Overrides:
getString in class GetterUtil

getByte

public byte getByte()
             throws PropertyTypeMismatch
Description copied from class: GetterUtil
Return the value of this Getter as a byte if possible

Specified by:
getByte in interface Getter
Overrides:
getByte in class GetterUtil
Throws:
PropertyTypeMismatch

getShort

public short getShort()
               throws PropertyTypeMismatch
Description copied from class: GetterUtil
Return the value of this Getter as a short if possible

Specified by:
getShort in interface Getter
Overrides:
getShort in class GetterUtil
Throws:
PropertyTypeMismatch

getInt

public int getInt()
           throws PropertyTypeMismatch
Description copied from class: GetterUtil
Return the value of this Getter as an int if possible

Specified by:
getInt in interface Getter
Overrides:
getInt in class GetterUtil
Throws:
PropertyTypeMismatch

getLong

public long getLong()
             throws PropertyTypeMismatch
Description copied from class: GetterUtil
Return the value of this Getter as a long if possible

Specified by:
getLong in interface Getter
Overrides:
getLong in class GetterUtil
Throws:
PropertyTypeMismatch

getFloat

public float getFloat()
               throws PropertyTypeMismatch
Description copied from class: GetterUtil
Return the value of this Getter as a float if possible

Specified by:
getFloat in interface Getter
Overrides:
getFloat in class GetterUtil
Throws:
PropertyTypeMismatch

valueEquals

public boolean valueEquals(java.lang.Object v)
Description copied from class: GetterUtil
Compare this value with the argument.

This method is provided so that comparison can be done without the overhead of a full get in some cases. This should thus be overriden with a more efficient implementation when possible.

Specified by:
valueEquals in interface Getter
Overrides:
valueEquals in class GetterUtil