Package net.minestom.server.utils
Interface Range<T extends Number>
- Type Parameters:
T- The type numeric of the range object.
- All Known Implementing Classes:
Range.Byte,Range.Double,Range.Float,Range.Integer,Range.Long,Range.Short
public sealed interface Range<T extends Number>
permits Range.Byte, Range.Short, Range.Integer, Range.Long, Range.Float, Range.Double
Represents the base for any data type that is numeric.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Method Summary
-
Method Details
-
isInRange
Whether the givenvalueis in range of the minimum and the maximum.- Parameters:
value- The value to be checked.- Returns:
trueif the value in the range ofminimumandmaximum, otherwisefalse.
-