public final class UnsignedByte extends NumberType implements java.lang.Comparable<UnsignedByte>
Modifier and Type | Field and Description |
---|---|
static UnsignedByte |
MAX_VALUE |
static UnsignedByte |
MIN_VALUE |
Constructor and Description |
---|
UnsignedByte()
Initializes with the value 0
|
UnsignedByte(java.math.BigInteger value)
Initializes with a BigInteger type
|
UnsignedByte(short value)
Initializes with a primitive number type
|
UnsignedByte(java.lang.String value)
Initializes with a string value.
|
UnsignedByte(UnsignedByte other)
Initializes with another signed byte
|
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
bigIntegerValue()
Returns a BigInteger representation
|
byte |
byteValue() |
java.lang.Object |
clone() |
int |
compareTo(UnsignedByte other) |
double |
doubleValue() |
boolean |
equals(java.lang.Object other) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
short |
shortValue() |
java.lang.String |
toString() |
public static final UnsignedByte MIN_VALUE
public static final UnsignedByte MAX_VALUE
public UnsignedByte()
public UnsignedByte(java.lang.String value)
java.lang.NumberFormatException
- The argument is out of rangepublic UnsignedByte(short value)
java.lang.NumberFormatException
- The argument is out of rangepublic UnsignedByte(java.math.BigInteger value)
java.lang.NumberFormatException
- The argument is out of rangepublic UnsignedByte(UnsignedByte other)
java.lang.NullPointerException
- When the argument is null.public java.math.BigInteger bigIntegerValue()
bigIntegerValue
in class NumberType
public double doubleValue()
doubleValue
in class java.lang.Number
public float floatValue()
floatValue
in class java.lang.Number
public byte byteValue()
byteValue
in class java.lang.Number
public short shortValue()
shortValue
in class java.lang.Number
public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(UnsignedByte other)
compareTo
in interface java.lang.Comparable<UnsignedByte>
public java.lang.Object clone()
clone
in class java.lang.Object