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
FieldsModifier and TypeFieldDescriptionstatic final UIntegerA constant holding the maximum value anunsigned intcan have as UInteger, 232-1.static final longA constant holding the maximum value anunsigned intcan have, 232-1.static final UIntegerA constant holding the minimum value anunsigned intcan have as UInteger, 0.static final longA constant holding the minimum value anunsigned intcan have, 0. -
Method Summary
Modifier and TypeMethodDescriptionadd(int val) intdoublebooleanfloatinthashCode()inclusiveOr(int val) inclusiveOr(long val) inclusiveOr(UInteger val) intintValue()leftShift(int shiftAmount) longrightShift(int shiftAmount) subtract(int val) Get this number as aBigInteger.toString()static UIntegervalueOf(int value) Create anunsigned intby masking it with0xFFFFFFFFi.e.static UIntegervalueOf(long value) Create anunsigned intstatic UIntegerCreate anunsigned intxor(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 intcan have, 0.- See Also:
-
MAX_VALUE
public static final long MAX_VALUEA constant holding the maximum value anunsigned intcan have, 232-1.- See Also:
-
MIN
A constant holding the minimum value anunsigned intcan have as UInteger, 0. -
MAX
A constant holding the maximum value anunsigned intcan have as UInteger, 232-1.
-
-
Method Details
-
valueOf
Create anunsigned int- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned int.
-
valueOf
Create anunsigned intby masking it with0xFFFFFFFFi.e.(int) -1becomes(uint) 4294967295 -
valueOf
Create anunsigned int- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
toBigInteger
Description copied from class:UNumberGet this number as aBigInteger. This is a convenience method for callingnew BigInteger(toString())- Overrides:
toBigIntegerin classUNumber
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<UInteger>
-
add
-
add
-
subtract
-
subtract
-
leftShift
-
inclusiveOr
-
inclusiveOr
-
inclusiveOr
-
rightShift
-
xor
-
xor
-
xor
-