java.lang.Object
com.activeviam.activepivot.server.json.api.query.JsonRange

public final class JsonRange extends Object
The JSON containing a range of indexes for an axis.
Author:
ActiveViam
  • Constructor Details

    • JsonRange

      public JsonRange(int from, int to)
      Creates a new JsonRange instance.
      Parameters:
      from - The first index of the range.
      to - The last index (excluded).
    • JsonRange

      public JsonRange()
  • Method Details

    • getFrom

      public int getFrom()
      The first index of the range.
    • getTo

      public int getTo()
      The last index (excluded).
    • setFrom

      public void setFrom(int from)
      The first index of the range.
    • setTo

      public void setTo(int to)
      The last index (excluded).
    • 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