sleep.engine.types
Class NullValue

java.lang.Object
  extended by sleep.engine.types.NullValue
All Implemented Interfaces:
java.io.Serializable, ScalarType

public class NullValue
extends java.lang.Object
implements ScalarType

See Also:
Serialized Form

Constructor Summary
NullValue()
           
 
Method Summary
 ScalarType copyValue()
          create a clone of this scalar's value.
 double doubleValue()
          convert the scalar to a double
 int intValue()
          convert the scalar to an int
 long longValue()
          convert the scalar to a long
 java.lang.Object objectValue()
          convert the scalar to an object value *shrug*
 java.lang.String toString()
          convert the scalar to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullValue

public NullValue()
Method Detail

copyValue

public ScalarType copyValue()
Description copied from interface: ScalarType
create a clone of this scalar's value. It is important to note that you should return a copy here unless you really want scalars of your scalar type to be passed by reference.

Specified by:
copyValue in interface ScalarType

intValue

public int intValue()
Description copied from interface: ScalarType
convert the scalar to an int

Specified by:
intValue in interface ScalarType

longValue

public long longValue()
Description copied from interface: ScalarType
convert the scalar to a long

Specified by:
longValue in interface ScalarType

doubleValue

public double doubleValue()
Description copied from interface: ScalarType
convert the scalar to a double

Specified by:
doubleValue in interface ScalarType

toString

public java.lang.String toString()
Description copied from interface: ScalarType
convert the scalar to a string

Specified by:
toString in interface ScalarType
Overrides:
toString in class java.lang.Object

objectValue

public java.lang.Object objectValue()
Description copied from interface: ScalarType
convert the scalar to an object value *shrug*

Specified by:
objectValue in interface ScalarType