public final class UnsignedShort extends java.lang.Number implements java.lang.Comparable<UnsignedShort>
| Modifier and Type | Field and Description |
|---|---|
private short |
_underlying |
private static UnsignedShort[] |
cachedValues |
static UnsignedShort |
MAX_VALUE |
| Constructor and Description |
|---|
UnsignedShort(short underlying) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(UnsignedShort o) |
double |
doubleValue() |
boolean |
equals(java.lang.Object o) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
short |
shortValue() |
java.lang.String |
toString() |
static UnsignedShort |
valueOf(short underlying) |
static UnsignedShort |
valueOf(java.lang.String value) |
private final short _underlying
private static final UnsignedShort[] cachedValues
public static final UnsignedShort MAX_VALUE
public short shortValue()
shortValue in class java.lang.Numberpublic int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(UnsignedShort o)
compareTo in interface java.lang.Comparable<UnsignedShort>public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static UnsignedShort valueOf(short underlying)
public static UnsignedShort valueOf(java.lang.String value)