java.lang.Object
org.rrd4j.data.RpnCalculator.Token
Enclosing class:
RpnCalculator

private static final class RpnCalculator.Tokenextends Object
Token class.
  • Field Details

    • id

      The token this represents.
    • number

      final double number
      The literal number, if this is one.
    • variable

      final String variable
      The variable's name, if this is one.
    • values

      final double[] values
      The variable's values, if this is one.
  • Constructor Details

    • Token

      Creates an operator or constant token.
      Parameters:
      id - the token to create
    • Token

      Token(RpnCalculator.Token_Symbol id, String variable, double[] values)
      Creates a variable token.
      Parameters:
      id - the token to create
      variable - the variable's name
      values - the variable's values
    • Token

      Token(RpnCalculator.Token_Symbol id, double number)
      Creates a literal-number token.
      Parameters:
      id - the token to create
      number - the literal value