Class BooleanValue
java.lang.Object
org.opensourcephysics.ejs.control.value.Value
org.opensourcephysics.ejs.control.value.BooleanValue
A
BooleanValue
is a Value
object that holds a
boolean value.
- See Also:
-
Field Summary
Fields 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 TypeMethodDescriptionboolean
Returns the value of the variable as a booleandouble
Returns the value of the variable as a doubleint
Returns the value of the variable as an intReturns the value of the variable as an Object.Returns the value of the variable as a Stringvoid
setValue
(boolean _value) boolean
Methods inherited from class org.opensourcephysics.ejs.control.value.Value
cloneValue, copyValue, getType, parseConstant, parseConstantOrArray, toString
-
Constructor Details
-
BooleanValue
public BooleanValue(boolean _val) Constructor BooleanValue- Parameters:
_val
-
-
-
Method Details
-
setValue
public void setValue(boolean _value) -
setValue
-
getBoolean
public boolean getBoolean()Description copied from class:Value
Returns the value of the variable as a boolean- Specified by:
getBoolean
in classValue
-
getInteger
public int getInteger()Description copied from class:Value
Returns the value of the variable as an int- Specified by:
getInteger
in classValue
-
getDouble
public double getDouble()Description copied from class:Value
Returns the value of the variable as a double -
getString
Description copied from class:Value
Returns the value of the variable as a String -
getObject
Description copied from class:Value
Returns the value of the variable as an Object. Ideal for arrays!
-