org.opensourcephysics.ejs.control.value
Class DoubleValue

java.lang.Object
  extended by org.opensourcephysics.ejs.control.value.Value
      extended by org.opensourcephysics.ejs.control.value.DoubleValue

public class DoubleValue
extends Value

A DoubleValue is a Value object that holds a double value.

See Also:
Value

Field Summary
 double value
           
 
Constructor Summary
DoubleValue(double _val)
          Constructor DoubleValue
 
Method Summary
 boolean getBoolean()
          Returns the value of the variable as a boolean
 double getDouble()
          Returns the value of the variable as a double
 int getInteger()
          Returns the value of the variable as an int
 java.lang.Object getObject()
          Returns the value of the variable as an Object.
 java.lang.String getString()
          Returns the value of the variable as a String
 
Methods inherited from class org.opensourcephysics.ejs.control.value.Value
cloneValue, copyValue, parseConstant, parseConstantOrArray, removeScapes, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public double value
Constructor Detail

DoubleValue

public DoubleValue(double _val)
Constructor DoubleValue

Parameters:
_val -
Method Detail

getBoolean

public boolean getBoolean()
Description copied from class: Value
Returns the value of the variable as a boolean

Specified by:
getBoolean in class Value

getInteger

public int getInteger()
Description copied from class: Value
Returns the value of the variable as an int

Specified by:
getInteger in class Value

getDouble

public double getDouble()
Description copied from class: Value
Returns the value of the variable as a double

Specified by:
getDouble in class Value

getString

public java.lang.String getString()
Description copied from class: Value
Returns the value of the variable as a String

Specified by:
getString in class Value

getObject

public java.lang.Object getObject()
Description copied from class: Value
Returns the value of the variable as an Object. Ideal for arrays!

Specified by:
getObject in class Value