Class Parameter.Modifier.RangedModifier<T extends Comparable<T>>
java.lang.Object
org.skriptlang.skript.common.function.Parameter.Modifier.RangedModifier<T>
- All Implemented Interfaces:
Parameter.Modifier
- Enclosing interface:
Parameter.Modifier
public static class Parameter.Modifier.RangedModifier<T extends Comparable<T>>
extends Object
implements Parameter.Modifier
Modifier specifying valid range bounds for numeric parameters.
Note that ALL instances will have the same hashCode and will be equal to
Parameter.Modifier.RANGED.
Avoid comparing these objects or putting multiple into a HashSet or HashMap!-
Nested Class Summary
Nested classes/interfaces inherited from interface org.skriptlang.skript.common.function.Parameter.Modifier
Parameter.Modifier.RangedModifier<T extends Comparable<T>> -
Field Summary
Fields inherited from interface org.skriptlang.skript.common.function.Parameter.Modifier
KEYED, OPTIONAL, RANGED -
Method Summary
-
Method Details
-
getMin
- Returns:
- Min value of the range (inclusive)
-
getMax
- Returns:
- Max value of the range (inclusive)
-
inRange
- Parameters:
input- The value to test.- Returns:
- Whether input is between min and max.
-
inRange
- Parameters:
inputs- The values to test.- Returns:
- Whether all the inputs are between min and max.
-
equals
-
hashCode
public int hashCode() -
toString
-