Package sleep.engine.types
Class NullValue
- java.lang.Object
-
- 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
Constructors Constructor Description NullValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScalarTypecopyValue()create a clone of this scalar's value.doubledoubleValue()convert the scalar to a doublejava.lang.ClassgetType()returns the Class type of this ScalarType.intintValue()convert the scalar to an intlonglongValue()convert the scalar to a longjava.lang.ObjectobjectValue()convert the scalar to an object value *shrug*java.lang.StringtoString()convert the scalar to a string
-
-
-
Method Detail
-
copyValue
public ScalarType copyValue()
Description copied from interface:ScalarTypecreate 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:
copyValuein interfaceScalarType
-
intValue
public int intValue()
Description copied from interface:ScalarTypeconvert the scalar to an int- Specified by:
intValuein interfaceScalarType
-
longValue
public long longValue()
Description copied from interface:ScalarTypeconvert the scalar to a long- Specified by:
longValuein interfaceScalarType
-
doubleValue
public double doubleValue()
Description copied from interface:ScalarTypeconvert the scalar to a double- Specified by:
doubleValuein interfaceScalarType
-
toString
public java.lang.String toString()
Description copied from interface:ScalarTypeconvert the scalar to a string- Specified by:
toStringin interfaceScalarType- Overrides:
toStringin classjava.lang.Object
-
objectValue
public java.lang.Object objectValue()
Description copied from interface:ScalarTypeconvert the scalar to an object value *shrug*- Specified by:
objectValuein interfaceScalarType
-
getType
public java.lang.Class getType()
Description copied from interface:ScalarTypereturns the Class type of this ScalarType. Use this instead of getClass to allow other functions to wrap ScalarType's without breaking functionality- Specified by:
getTypein interfaceScalarType
-
-