Class UInteger
java.lang.Object
java.lang.Number
org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.UNumber
org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.UInteger
- All Implemented Interfaces:
Serializable
,Comparable<UInteger>
The
unsigned int
type- Author:
- Lukas Eder, Ed Schaller, Jens Nerche
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final UInteger
A constant holding the maximum value anunsigned int
can have as UInteger, 232-1.static final long
A constant holding the maximum value anunsigned int
can have, 232-1.static final UInteger
A constant holding the minimum value anunsigned int
can have as UInteger, 0.static final long
A constant holding the minimum value anunsigned int
can have, 0. -
Method Summary
Modifier and TypeMethodDescriptionadd
(int val) int
double
boolean
float
int
hashCode()
inclusiveOr
(int val) inclusiveOr
(long val) inclusiveOr
(UInteger val) int
intValue()
leftShift
(int shiftAmount) long
rightShift
(int shiftAmount) subtract
(int val) Get this number as aBigInteger
.toString()
static UInteger
valueOf
(int value) Create anunsigned int
by masking it with0xFFFFFFFF
i.e.static UInteger
valueOf
(long value) Create anunsigned int
static UInteger
Create anunsigned int
xor
(int val) xor
(long val) Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
MIN_VALUE
public static final long MIN_VALUEA constant holding the minimum value anunsigned int
can have, 0.- See Also:
-
MAX_VALUE
public static final long MAX_VALUEA constant holding the maximum value anunsigned int
can have, 232-1.- See Also:
-
MIN
A constant holding the minimum value anunsigned int
can have as UInteger, 0. -
MAX
A constant holding the maximum value anunsigned int
can have as UInteger, 232-1.
-
-
Method Details
-
valueOf
Create anunsigned int
- Throws:
NumberFormatException
- Ifvalue
does not contain a parsableunsigned int
.
-
valueOf
Create anunsigned int
by masking it with0xFFFFFFFF
i.e.(int) -1
becomes(uint) 4294967295
-
valueOf
Create anunsigned int
- 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
-
toBigInteger
Description copied from class:UNumber
Get this number as aBigInteger
. This is a convenience method for callingnew BigInteger(toString())
- Overrides:
toBigInteger
in classUNumber
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<UInteger>
-
add
-
add
-
subtract
-
subtract
-
leftShift
-
inclusiveOr
-
inclusiveOr
-
inclusiveOr
-
rightShift
-
xor
-
xor
-
xor
-