Class NumberLiteral

    • Constructor Detail

      • NumberLiteral

        public NumberLiteral​(Double value)
        Create a new number literal
        Parameters:
        value - double value
    • Method Detail

      • of

        public static NumberLiteral of​(Number value)
        Create numberLiteral from number
        Parameters:
        value - number
        Returns:
        NumberLiteral
      • getValue

        public Double getValue()
        Description copied from interface: Literal
        Current value of the literal
        Specified by:
        getValue in interface Literal<Double>
        Returns:
        the value
      • toString

        public String toString()
        Description copied from interface: Node
        Convert the current Node to an influxql String that the parser must be able to read.
        Specified by:
        toString in interface Node
        Overrides:
        toString in class Object
        Returns:
        an InfluxQL string