Class DimRange


  • public class DimRange
    extends Object
    Defines a single range in a FacetSet dimension.
    WARNING: This API is experimental and might change in incompatible ways in the next release.
    • Field Detail

      • min

        public final long min
        Inclusive min
      • max

        public final long max
        Inclusive max
    • Constructor Detail

      • DimRange

        public DimRange​(long min,
                        long max)
        Creates a LongRange.
        Parameters:
        min - inclusive min value in range
        max - inclusive max value in range
    • Method Detail

      • fromLongs

        public static DimRange fromLongs​(long min,
                                         boolean minInclusive,
                                         long max,
                                         boolean maxInclusive)
        Creates a DimRange for the given min and max long values. This method is also suitable for int values.
      • fromDoubles

        public static DimRange fromDoubles​(double min,
                                           boolean minInclusive,
                                           double max,
                                           boolean maxInclusive)
        Creates a DimRange for the given min and max double values.
      • fromFloats

        public static DimRange fromFloats​(float min,
                                          boolean minInclusive,
                                          float max,
                                          boolean maxInclusive)
        Creates a DimRange for the given min and max float values.