Package org.spongepowered.api.util
Interface Range.Factory
-
-
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 aRange
based on doubles.Range<java.lang.Float>
floatRange(@Nullable java.lang.Float min, @Nullable java.lang.Float max)
Builds aRange
based on floats.Range<java.lang.Integer>
intRange(@Nullable java.lang.Integer min, @Nullable java.lang.Integer max)
Builds aRange
based on integers.
-
-
-
Method Detail
-
floatRange
Range<java.lang.Float> floatRange(@Nullable java.lang.Float min, @Nullable java.lang.Float max)
Builds aRange
based on floats.- Parameters:
min
- The minimum, ornull
for no minimummax
- The maximum, ornull
for no maximum- Returns:
- The range.
-
intRange
Range<java.lang.Integer> intRange(@Nullable java.lang.Integer min, @Nullable java.lang.Integer max)
Builds aRange
based on integers.- Parameters:
min
- The minimum, ornull
for no minimummax
- The maximum, ornull
for no maximum- Returns:
- The range.
-
-