Interface Range.Factory

  • Enclosing interface:
    Range<T extends java.lang.Number>

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Range<java.lang.Double> doubleRange​(@Nullable java.lang.Double min, @Nullable java.lang.Double max)
      Builds a Range based on doubles.
      Range<java.lang.Float> floatRange​(@Nullable java.lang.Float min, @Nullable java.lang.Float max)
      Builds a Range based on floats.
      Range<java.lang.Integer> intRange​(@Nullable java.lang.Integer min, @Nullable java.lang.Integer max)
      Builds a Range based on integers.
    • Method Detail

      • floatRange

        Range<java.lang.Float> floatRange​(@Nullable java.lang.Float min,
                                          @Nullable java.lang.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<java.lang.Integer> intRange​(@Nullable java.lang.Integer min,
                                          @Nullable java.lang.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<java.lang.Double> doubleRange​(@Nullable java.lang.Double min,
                                            @Nullable java.lang.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.