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