public final class UByte extends UNumber implements Comparable<UByte>
unsigned byte type| Modifier and Type | Field and Description | 
|---|---|
| static UByte | MAXA constant holding the maximum value an  unsigned bytecan
 have as UByte, 28-1. | 
| static short | MAX_VALUEA constant holding the maximum value an  unsigned bytecan
 have, 28-1. | 
| static UByte | MINA constant holding the minimum value an  unsigned bytecan
 have as UByte, 0. | 
| static short | MIN_VALUEA constant holding the minimum value an  unsigned bytecan
 have, 0. | 
| Modifier and Type | Method and Description | 
|---|---|
| UByte | add(int val) | 
| UByte | add(UByte val) | 
| int | compareTo(UByte o) | 
| double | doubleValue() | 
| boolean | equals(Object obj) | 
| float | floatValue() | 
| int | hashCode() | 
| int | intValue() | 
| long | longValue() | 
| UByte | subtract(int val) | 
| UByte | subtract(UByte val) | 
| BigInteger | toBigInteger()Get this number as a  BigInteger. | 
| String | toString() | 
| static UByte | valueOf(byte value)Get an instance of an  unsigned byteby masking it with0xFFi.e. | 
| static UByte | valueOf(int value)Get an instance of an  unsigned byte | 
| static UByte | valueOf(long value)Get an instance of an  unsigned byte | 
| static UByte | valueOf(short value)Get an instance of an  unsigned byte | 
| static UByte | valueOf(String value)Get an instance of an  unsigned byte | 
byteValue, shortValuepublic static final short MIN_VALUE
unsigned byte can
 have, 0.public static final short MAX_VALUE
unsigned byte can
 have, 28-1.public static final UByte MIN
unsigned byte can
 have as UByte, 0.public static final UByte MAX
unsigned byte can
 have as UByte, 28-1.public static UByte valueOf(String value) throws NumberFormatException
unsigned byteNumberFormatException - If value does not contain a
                               parsable unsigned byte.public static UByte valueOf(byte value)
unsigned byte by masking it with
 0xFF i.e. (byte) -1 becomes
 (ubyte) 255public static UByte valueOf(short value) throws NumberFormatException
unsigned byteNumberFormatException - If value is not in the range
                               of an unsigned bytepublic static UByte valueOf(int value) throws NumberFormatException
unsigned byteNumberFormatException - If value is not in the range
                               of an unsigned bytepublic static UByte valueOf(long value) throws NumberFormatException
unsigned byteNumberFormatException - If value is not in the range
                               of an unsigned bytepublic float floatValue()
floatValue in class Numberpublic double doubleValue()
doubleValue in class Numberpublic int compareTo(UByte o)
compareTo in interface Comparable<UByte>public BigInteger toBigInteger()
UNumberBigInteger. This is a convenience method for
 calling new BigInteger(toString())toBigInteger in class UNumberpublic UByte add(UByte val) throws NumberFormatException
NumberFormatExceptionpublic UByte add(int val) throws NumberFormatException
NumberFormatExceptionpublic UByte subtract(int val)
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.