sleep.engine.types

Class LongValue

Implemented Interfaces:
ScalarType, Serializable

public class LongValue
extends Object
implements ScalarType

Field Summary

protected long
value

Constructor Summary

LongValue(long _value)

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
Object
objectValue()
convert the scalar to an object value *shrug*
String
toString()
convert the scalar to a string

Field Details

value

protected long value

Constructor Details

LongValue

public LongValue(long _value)

Method Details

copyValue

public ScalarType copyValue()
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

doubleValue

public double doubleValue()
convert the scalar to a double
Specified by:
doubleValue in interface ScalarType

intValue

public int intValue()
convert the scalar to an int
Specified by:
intValue in interface ScalarType

longValue

public long longValue()
convert the scalar to a long
Specified by:
longValue in interface ScalarType

objectValue

public Object objectValue()
convert the scalar to an object value *shrug*
Specified by:
objectValue in interface ScalarType

toString

public String toString()
convert the scalar to a string
Specified by:
toString in interface ScalarType