Class Range

java.lang.Object
com.algolia.model.search.Range

public class Range extends Object
Range object with lower and upper values in meters to define custom ranges.
  • Constructor Details

    • Range

      public Range()
  • Method Details

    • setFrom

      public Range setFrom(Integer from)
    • getFrom

      @Nullable public Integer getFrom()
      Lower boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
    • setValue

      public Range setValue(Integer value)
    • getValue

      @Nullable public Integer getValue()
      Upper boundary of a range in meters. The Geo ranking criterion considers all records within the range to be equal.
    • 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