Class Duration

java.lang.Object
com.influxdb.client.domain.Duration

public class Duration extends Object
A pair consisting of length of time and the unit of time measured. It is the atomic unit from which all duration literals are composed.
  • Field Details

  • Constructor Details

    • Duration

      public Duration()
  • Method Details

    • type

      public Duration type(String type)
    • getType

      public String getType()
      Type of AST node
      Returns:
      type
    • setType

      public void setType(String type)
    • magnitude

      public Duration magnitude(Integer magnitude)
    • getMagnitude

      public Integer getMagnitude()
      Get magnitude
      Returns:
      magnitude
    • setMagnitude

      public void setMagnitude(Integer magnitude)
    • unit

      public Duration unit(String unit)
    • getUnit

      public String getUnit()
      Get unit
      Returns:
      unit
    • setUnit

      public void setUnit(String unit)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object