Class Range<N extends Number>
java.lang.Object
java.lang.Number
studio.mevera.imperat.selector.field.Range<N>
- All Implemented Interfaces:
Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionatLeast(N numericValue) atMost(N numericValue) doubleReturns the value of the specified number as adouble.booleanfloatReturns the value of the specified number as afloat.getMax()getMin()inthashCode()intintValue()Returns the value of the specified number as anint.booleanlongReturns the value of the specified number as along.of(N min, N max) Methods inherited from class java.lang.Number
byteValue, shortValue
-
Method Details
-
atLeast
-
atMost
-
of
-
getMax
-
getMin
-
isInRange
-
intValue
public int intValue()Returns the value of the specified number as anint. -
longValue
public long longValue()Returns the value of the specified number as along. -
floatValue
public float floatValue()Returns the value of the specified number as afloat.- Specified by:
floatValuein classNumber- Returns:
- the numeric value represented by this object after conversion
to type
float.
-
doubleValue
public double doubleValue()Returns the value of the specified number as adouble.- Specified by:
doubleValuein classNumber- Returns:
- the numeric value represented by this object after conversion
to type
double.
-
equals
-
hashCode
public int hashCode()
-