Class DoubleValue
java.lang.Object
org.opensourcephysics.ejs.control.value.Value
org.opensourcephysics.ejs.control.value.DoubleValue
A
DoubleValue is a Value object that
holds a double value.
- See Also:
-
Field Summary
FieldsFields inherited from class org.opensourcephysics.ejs.control.value.Value
type, TYPE_BOOLEAN, TYPE_DOUBLE, TYPE_EXPRESSION, TYPE_INTEGER, TYPE_OBJECT, TYPE_STRING, VALUE_FALSE, VALUE_NULL, VALUE_TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of the variable as a booleandoubleReturns the value of the variable as a doubleintReturns the value of the variable as an intReturns the value of the variable as an Object.Returns the value of the variable as a StringMethods inherited from class org.opensourcephysics.ejs.control.value.Value
cloneValue, copyValue, getType, parseConstant, parseConstantOrArray, toString
-
Field Details
-
value
public double value
-
-
Constructor Details
-
DoubleValue
public DoubleValue(double _val) Constructor DoubleValue- Parameters:
_val-
-
-
Method Details
-
getBoolean
public boolean getBoolean()Description copied from class:ValueReturns the value of the variable as a boolean- Specified by:
getBooleanin classValue
-
getInteger
public int getInteger()Description copied from class:ValueReturns the value of the variable as an int- Specified by:
getIntegerin classValue
-
getDouble
public double getDouble()Description copied from class:ValueReturns the value of the variable as a double -
getString
Description copied from class:ValueReturns the value of the variable as a String -
getObject
Description copied from class:ValueReturns the value of the variable as an Object. Ideal for arrays!
-