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>
public final class UInteger extends UNumber implements Comparable<UInteger>
Theunsigned inttype- Author:
 - Lukas Eder, Ed Schaller, Jens Nerche
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static UIntegerMAXA constant holding the maximum value anunsigned intcan have as UInteger, 232-1.static longMAX_VALUEA constant holding the maximum value anunsigned intcan have, 232-1.static UIntegerMINA constant holding the minimum value anunsigned intcan have as UInteger, 0.static longMIN_VALUEA constant holding the minimum value anunsigned intcan have, 0. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UIntegeradd(int val)UIntegeradd(UInteger val)intcompareTo(UInteger o)doubledoubleValue()booleanequals(Object obj)floatfloatValue()inthashCode()UIntegerinclusiveOr(int val)UIntegerinclusiveOr(long val)UIntegerinclusiveOr(UInteger val)intintValue()UIntegerleftShift(int shiftAmount)longlongValue()UIntegerrightShift(int shiftAmount)UIntegersubtract(int val)UIntegersubtract(UInteger val)BigIntegertoBigInteger()Get this number as aBigInteger.StringtoString()static UIntegervalueOf(int value)Create anunsigned intby masking it with0xFFFFFFFFi.e.static UIntegervalueOf(long value)Create anunsigned intstatic UIntegervalueOf(String value)Create anunsigned intUIntegerxor(int val)UIntegerxor(long val)UIntegerxor(UInteger val)- 
Methods inherited from class java.lang.Number
byteValue, shortValue 
 - 
 
 - 
 
- 
- 
Field Detail
- 
MIN_VALUE
public static final long MIN_VALUE
A constant holding the minimum value anunsigned intcan have, 0.- See Also:
 - Constant Field Values
 
 
- 
MAX_VALUE
public static final long MAX_VALUE
A constant holding the maximum value anunsigned intcan have, 232-1.- See Also:
 - Constant Field Values
 
 
- 
MIN
public static final UInteger MIN
A constant holding the minimum value anunsigned intcan have as UInteger, 0. 
- 
MAX
public static final UInteger MAX
A constant holding the maximum value anunsigned intcan have as UInteger, 232-1. 
 - 
 
- 
Method Detail
- 
valueOf
public static UInteger valueOf(String value) throws NumberFormatException
Create anunsigned int- Throws:
 NumberFormatException- Ifvaluedoes not contain a parsableunsigned int.
 
- 
valueOf
public static UInteger valueOf(int value)
Create anunsigned intby masking it with0xFFFFFFFFi.e.(int) -1becomes(uint) 4294967295 
- 
valueOf
public static UInteger valueOf(long value) throws NumberFormatException
Create anunsigned int- Throws:
 NumberFormatException- Ifvalueis not in the range of anunsigned byte
 
- 
floatValue
public float floatValue()
- Specified by:
 floatValuein classNumber
 
- 
doubleValue
public double doubleValue()
- Specified by:
 doubleValuein classNumber
 
- 
toBigInteger
public BigInteger toBigInteger()
Description copied from class:UNumberGet this number as aBigInteger. This is a convenience method for callingnew BigInteger(toString())- Overrides:
 toBigIntegerin classUNumber
 
- 
compareTo
public int compareTo(UInteger o)
- Specified by:
 compareToin interfaceComparable<UInteger>
 
- 
add
public UInteger add(int val)
 
- 
subtract
public UInteger subtract(int val)
 
- 
leftShift
public UInteger leftShift(int shiftAmount)
 
- 
inclusiveOr
public UInteger inclusiveOr(int val)
 
- 
inclusiveOr
public UInteger inclusiveOr(long val)
 
- 
rightShift
public UInteger rightShift(int shiftAmount)
 
- 
xor
public UInteger xor(int val)
 
- 
xor
public UInteger xor(long val)
 
 - 
 
 -