public final class UShort extends UNumber implements Comparable<UShort>
unsigned short type| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MAX_VALUE
A constant holding the maximum value an
unsigned short can
have, 216-1. |
static int |
MIN_VALUE
A constant holding the minimum value an
unsigned short can
have, 0. |
| 构造器和说明 |
|---|
UShort(int value)
Create an
unsigned short |
UShort(short value)
Create an
unsigned short by masking it with
0xFFFF i.e. |
UShort(String value)
Create an
unsigned short |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(UShort o) |
double |
doubleValue() |
boolean |
equals(Object obj) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
String |
toString() |
static UShort |
valueOf(short value)
Create an
unsigned short by masking it with
0xFFFF i.e. |
static UShort |
valueOf(String value)
Create an
unsigned short |
toBigIntegerbyteValue, shortValuepublic static final int MIN_VALUE
unsigned short can
have, 0.public static final int MAX_VALUE
unsigned short can
have, 216-1.public UShort(int value)
throws NumberFormatException
unsigned shortNumberFormatException - If value is not in the range
of an unsigned shortpublic UShort(short value)
unsigned short by masking it with
0xFFFF i.e. (short) -1 becomes
(ushort) 65535public UShort(String value) throws NumberFormatException
unsigned shortNumberFormatException - If value does not contain a
parsable unsigned short.public static UShort valueOf(String value) throws NumberFormatException
unsigned shortNumberFormatException - If value does not contain a
parsable unsigned short.UShort(String)public static UShort valueOf(short value)
unsigned short by masking it with
0xFFFF i.e. (short) -1 becomes
(ushort) 65535UShort(short)public float floatValue()
floatValue 在类中 Numberpublic double doubleValue()
doubleValue 在类中 Numberpublic int compareTo(UShort o)
compareTo 在接口中 Comparable<UShort>Copyright © 2016. All rights reserved.