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 aRangebased on doubles.floatRange(@Nullable Float min, @Nullable Float max) Builds aRangebased on floats.Builds aRangebased on integers.
-
Method Details
-
floatRange
Builds aRangebased on floats.- Parameters:
min- The minimum, ornullfor no minimummax- The maximum, ornullfor no maximum- Returns:
- The range.
-
intRange
Builds aRangebased on integers.- Parameters:
min- The minimum, ornullfor no minimummax- The maximum, ornullfor no maximum- Returns:
- The range.
-
doubleRange
Builds aRangebased on doubles.- Parameters:
min- The minimum, ornullfor no minimummax- The maximum, ornullfor no maximum- Returns:
- The range.
-