|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yosokumo.core.Value com.yosokumo.core.NaturalValue
public class NaturalValue
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 | |
---|---|
NaturalValue(long value)
Initialize a newly created NaturalValue object with the
value specified by the input parameter. |
Method Summary | |
---|---|
Value.Type |
getType()
Return the natural type. |
long |
getValue()
Return the natural value stored in this object. |
java.lang.String |
toString()
Return the natural value as a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NaturalValue(long value)
NaturalValue
object with the
value specified by the input parameter.
value
- is the natural value (>= 0).Method Detail |
---|
public Value.Type getType()
getType
in class Value
public long getValue()
public java.lang.String toString()
toString
in class Value
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |