Class UByte
java.lang.Object
java.lang.Number
org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.UNumber
org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.UByte
- All Implemented Interfaces:
Serializable
,Comparable<UByte>
The
unsigned byte
type- Author:
- Lukas Eder, Ed Schaller, Jens Nerche
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final UByte
A constant holding the maximum value anunsigned byte
can have as UByte, 28-1.static final short
A constant holding the maximum value anunsigned byte
can have, 28-1.static final UByte
A constant holding the minimum value anunsigned byte
can have as UByte, 0.static final short
A constant holding the minimum value anunsigned byte
can have, 0. -
Method Summary
Modifier and TypeMethodDescriptionadd
(int val) int
double
boolean
float
int
hashCode()
int
intValue()
long
subtract
(int val) Get this number as aBigInteger
.toString()
static UByte
valueOf
(byte value) Get an instance of anunsigned byte
by masking it with0xFF
i.e.static UByte
valueOf
(int value) Get an instance of anunsigned byte
static UByte
valueOf
(long value) Get an instance of anunsigned byte
static UByte
valueOf
(short value) Get an instance of anunsigned byte
static UByte
Get an instance of anunsigned byte
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
MIN_VALUE
public static final short MIN_VALUEA constant holding the minimum value anunsigned byte
can have, 0.- See Also:
-
MAX_VALUE
public static final short MAX_VALUEA constant holding the maximum value anunsigned byte
can have, 28-1.- See Also:
-
MIN
A constant holding the minimum value anunsigned byte
can have as UByte, 0. -
MAX
A constant holding the maximum value anunsigned byte
can have as UByte, 28-1.
-
-
Method Details
-
valueOf
Get an instance of anunsigned byte
- Throws:
NumberFormatException
- Ifvalue
does not contain a parsableunsigned byte
.
-
valueOf
Get an instance of anunsigned byte
by masking it with0xFF
i.e.(byte) -1
becomes(ubyte) 255
-
valueOf
Get an instance of anunsigned byte
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned byte
-
valueOf
Get an instance of anunsigned byte
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned byte
-
valueOf
Get an instance of anunsigned byte
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned byte
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<UByte>
-
toBigInteger
Description copied from class:UNumber
Get this number as aBigInteger
. This is a convenience method for callingnew BigInteger(toString())
- Overrides:
toBigInteger
in classUNumber
-
add
- Throws:
NumberFormatException
-
add
- Throws:
NumberFormatException
-
subtract
-
subtract
-