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