org.freedesktop.dbus
class UInt16 extends Number implements Comparable<UInt16>
| Field Summary | |
|---|---|
| static int | MAX_VALUE Maximum possible value. |
| static int | MIN_VALUE Minimum possible value. |
| Constructor Summary | |
|---|---|
| UInt16(int value) Create a UInt16 from an int. | |
| UInt16(String value) Create a UInt16 from a String. | |
| Method Summary | |
|---|---|
| byte | byteValue() The value of this as a byte. |
| int | compareTo(UInt16 other) Compare two UInt16s. |
| double | doubleValue() The value of this as a double. |
| boolean | equals(Object o) Test two UInt16s for equality. |
| float | floatValue() The value of this as a float. |
| int | hashCode() |
| int | intValue() The value of this as a int. |
| long | longValue() The value of this as a long. |
| short | shortValue() The value of this as a short. |
| String | toString() The value of this as a string. |
Parameters: value Must be within MIN_VALUE–MAX_VALUE
Throws: NumberFormatException if value is not between MIN_VALUE and MAX_VALUE
Parameters: value Must parse to a valid integer within MIN_VALUE–MAX_VALUE
Throws: NumberFormatException if value is not an integer between MIN_VALUE and MAX_VALUE
Returns: 0 if equal, -ve or +ve if they are different.