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 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 StringvoidsetValue(boolean _value) booleanMethods 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: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!
-