Class DoubleRange


  • public final class DoubleRange
    extends Range
    Represents a range over double values.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double max
      Maximum.
      boolean maxInclusive
      True if the maximum value is inclusive.
      double min
      Minimum.
      boolean minInclusive
      True if the minimum value is inclusive.
      • Fields inherited from class org.apache.lucene.facet.range.Range

        label
    • Constructor Summary

      Constructors 
      Constructor Description
      DoubleRange​(java.lang.String label, double minIn, boolean minInclusive, double maxIn, boolean maxInclusive)
      Create a DoubleRange.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(double value)
      True if this range accepts the provided value.
      Filter getFilter​(Filter fastMatchFilter, ValueSource valueSource)
      Returns a new Filter accepting only documents in this range.
      java.lang.String toString()  
      • Methods inherited from class org.apache.lucene.facet.range.Range

        getFilter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • min

        public final double min
        Minimum.
      • max

        public final double max
        Maximum.
      • minInclusive

        public final boolean minInclusive
        True if the minimum value is inclusive.
      • maxInclusive

        public final boolean maxInclusive
        True if the maximum value is inclusive.
    • Constructor Detail

      • DoubleRange

        public DoubleRange​(java.lang.String label,
                           double minIn,
                           boolean minInclusive,
                           double maxIn,
                           boolean maxInclusive)
        Create a DoubleRange.