public class UByte
extends java.lang.Number
implements java.lang.Comparable
| Modifier and Type | Field and Description |
|---|---|
protected short |
value |
| Constructor and Description |
|---|
UByte(byte value)
Constructs from a signed 8 bit value, the bits of the value are assumed to
actually represent an unsigned number.
|
UByte(short value)
Constructs from a signed 16 bit value, only 8 bits of the value is used.
|
UByte(java.lang.String s)
Constructs from a string.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
int |
compareTo(UByte anotherUByte) |
double |
doubleValue() |
boolean |
equals(java.lang.Object o) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
java.lang.String |
toHexString() |
java.lang.String |
toString() |
static UByte |
valueOf(java.lang.String s) |
static UByte |
valueOf(java.lang.String s,
int radix) |
public UByte(short value)
public UByte(java.lang.String s)
public UByte(byte value)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toHexString()
public static UByte valueOf(java.lang.String s)
public static UByte valueOf(java.lang.String s, int radix)
public int compareTo(UByte anotherUByte)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic float floatValue()
floatValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic int intValue()
intValue in class java.lang.Numberpublic long longValue()
longValue in class java.lang.Number