Class StringValue

java.lang.Object
org.opensourcephysics.ejs.control.value.Value
org.opensourcephysics.ejs.control.value.StringValue

public class StringValue extends Value
A StringValue is a Value object that holds a String value.

See Also:
  • Field Details

  • Constructor Details

    • StringValue

      public StringValue(String _val)
      Constructor StringValue
      Parameters:
      _val -
  • Method Details

    • 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 String getString()
      Description copied from class: Value
      Returns the value of the variable as a String
      Specified by:
      getString in class Value
    • getObject

      public 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