Package org.spongepowered.api.util
Interface Range.Factory
public static interface Range.Factory
Generates specific implementations of the
Range
interface.-
Method Summary
Modifier and TypeMethodDescriptiondoubleRange
(@Nullable Double min, @Nullable Double max) Builds aRange
based on doubles.floatRange
(@Nullable Float min, @Nullable Float max) Builds aRange
based on floats.Builds aRange
based on integers.
-
Method Details
-
floatRange
Builds aRange
based on floats.- Parameters:
min
- The minimum, ornull
for no minimummax
- The maximum, ornull
for no maximum- Returns:
- The range.
-
intRange
Builds aRange
based on integers.- Parameters:
min
- The minimum, ornull
for no minimummax
- The maximum, ornull
for no maximum- Returns:
- The range.
-
doubleRange
Builds aRange
based on doubles.- Parameters:
min
- The minimum, ornull
for no minimummax
- The maximum, ornull
for no maximum- Returns:
- The range.
-