com.yosokumo.core
Class SpecialValue

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

public class SpecialValue
extends Value

Represents an unsigned integer value. Since Java does not support unsigned, the value is stored in a long. All 64 bits of the unsigned value are stored, but no arithmetic operations are allowed on the value. Tests for equality and inequality are allowed, but not tests for greater than or less than.


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

Constructor Detail

SpecialValue

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

Parameters:
value - is the special value (>= 0).
Method Detail

getType

public Value.Type getType()
Return the special value type.

Specified by:
getType in class Value
Returns:
the special value type: Type.SPECIAL.

getValue

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

Returns:
the special value.

toString

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

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