com.yosokumo.core
Class IntegerValue

java.lang.Object
  extended by com.yosokumo.core.Value
      extended by com.yosokumo.core.IntegerValue

public class IntegerValue
extends Value

Represents a signed integer value.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.yosokumo.core.Value
Value.Type
 
Constructor Summary
IntegerValue(long value)
          Initialize a newly created IntegerValue object with the value specified by the input parameter.
 
Method Summary
 Value.Type getType()
          Return the integer type.
 long getValue()
          Return the integer value stored in this object.
 java.lang.String toString()
          Return the integer value as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegerValue

public IntegerValue(long value)
Initialize a newly created IntegerValue object with the value specified by the input parameter.

Parameters:
value - is the integer value.
Method Detail

getType

public Value.Type getType()
Return the integer type.

Specified by:
getType in class Value
Returns:
the integer type: Type.INTEGER.

getValue

public long getValue()
Return the integer value stored in this object.

Returns:
the integer value.

toString

public java.lang.String toString()
Return the integer value as a String.

Specified by:
toString in class Value
Returns:
the integer value as a String.