Package org.spongepowered.api.util
Interface Range.Factory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Range<Double>
doubleRange(@Nullable Double min, @Nullable Double max)
Builds aRange
based on doubles.Range<Float>
floatRange(@Nullable Float min, @Nullable Float max)
Builds aRange
based on floats.Range<Integer>
intRange(@Nullable Integer min, @Nullable Integer max)
Builds aRange
based on integers.
-
-
-
Method Detail
-
floatRange
Range<Float> floatRange(@Nullable Float min, @Nullable 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<Integer> intRange(@Nullable Integer min, @Nullable Integer max)
Builds aRange
based on integers.- Parameters:
min
- The minimum, ornull
for no minimummax
- The maximum, ornull
for no maximum- Returns:
- The range.
-
-