Interface Range.Factory

  • Enclosing interface:
    Range<T extends Number>

    public static interface Range.Factory
    Generates specific implementations of the Range interface.
    • Method Detail

      • floatRange

        Range<Float> floatRange​(@Nullable Float min,
                                @Nullable Float max)
        Builds a Range based on floats.
        Parameters:
        min - The minimum, or null for no minimum
        max - The maximum, or null for no maximum
        Returns:
        The range.
      • intRange

        Range<Integer> intRange​(@Nullable Integer min,
                                @Nullable Integer max)
        Builds a Range based on integers.
        Parameters:
        min - The minimum, or null for no minimum
        max - The maximum, or null for no maximum
        Returns:
        The range.
      • doubleRange

        Range<Double> doubleRange​(@Nullable Double min,
                                  @Nullable Double max)
        Builds a Range based on doubles.
        Parameters:
        min - The minimum, or null for no minimum
        max - The maximum, or null for no maximum
        Returns:
        The range.