Package me.olhalvo.unum.types
Class UShort
java.lang.Object
java.lang.Number
me.olhalvo.unum.types.UShort
- All Implemented Interfaces:
Serializable
,Comparable<UShort>
Class used to represent an unsigned short (0 to 65535)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
MIN_VALUE
public static final int MIN_VALUEThe minimum value an UShort can have- See Also:
-
MAX_VALUE
public static final int MAX_VALUEThe maximum value an UShort can have- See Also:
-
-
Constructor Details
-
UShort
protected UShort(int value)
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<UShort>
-
intValue
-
longValue
-
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-