com.yosokumo.core
Class RealValue

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

public class RealValue
extends Value

Represents a floating-point value.


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

Constructor Detail

RealValue

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

Parameters:
value - is the real value.
Method Detail

getType

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

Specified by:
getType in class Value
Returns:
the real type: Type.REAL.

getValue

public double getValue()
Return the real value stored in this object.

Returns:
the real value .

toString

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

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