Class ULong
- java.lang.Object
-
- java.lang.Number
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.UNumber
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.ULong
-
- All Implemented Interfaces:
Serializable
,Comparable<ULong>
public final class ULong extends UNumber implements Comparable<ULong>
Theunsigned long
type- Author:
- Lukas Eder, Jens Nerche, Ivan Sokolov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ULong
MAX
A constant holding the maximum value + 1 ansigned long
can have as ULong, 263.static BigInteger
MAX_VALUE
A constant holding the maximum value anunsigned long
can have, 264-1.static BigInteger
MAX_VALUE_LONG
A constant holding the maximum value + 1 ansigned long
can have, 263.static ULong
MIN
A constant holding the minimum value anunsigned long
can have as ULong, 0.static BigInteger
MIN_VALUE
A constant holding the minimum value anunsigned long
can have, 0.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ULong
add(int val)
ULong
add(long val)
ULong
add(ULong val)
static int
compare(long x, long y)
int
compareTo(ULong o)
double
doubleValue()
boolean
equals(Object obj)
float
floatValue()
int
hashCode()
int
intValue()
long
longValue()
ULong
subtract(int val)
ULong
subtract(long val)
ULong
subtract(ULong val)
String
toString()
static ULong
valueOf(long value)
Create anunsigned long
by masking it with0xFFFFFFFFFFFFFFFF
i.e.static ULong
valueOf(String value)
Create anunsigned long
static ULong
valueOf(BigInteger value)
Create anunsigned long
-
Methods inherited from class org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.UNumber
toBigInteger
-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Field Detail
-
MIN_VALUE
public static final BigInteger MIN_VALUE
A constant holding the minimum value anunsigned long
can have, 0.
-
MAX_VALUE
public static final BigInteger MAX_VALUE
A constant holding the maximum value anunsigned long
can have, 264-1.
-
MAX_VALUE_LONG
public static final BigInteger MAX_VALUE_LONG
A constant holding the maximum value + 1 ansigned long
can have, 263.
-
MIN
public static final ULong MIN
A constant holding the minimum value anunsigned long
can have as ULong, 0.
-
MAX
public static final ULong MAX
A constant holding the maximum value + 1 ansigned long
can have as ULong, 263.
-
-
Method Detail
-
valueOf
public static ULong valueOf(String value) throws NumberFormatException
Create anunsigned long
- Throws:
NumberFormatException
- Ifvalue
does not contain a parsableunsigned long
.
-
valueOf
public static ULong valueOf(long value)
Create anunsigned long
by masking it with0xFFFFFFFFFFFFFFFF
i.e.(long) -1
becomes(uint) 18446744073709551615
-
valueOf
public static ULong valueOf(BigInteger value) throws NumberFormatException
Create anunsigned long
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned long
-
compare
public static int compare(long x, long y)
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
compareTo
public int compareTo(ULong o)
- Specified by:
compareTo
in interfaceComparable<ULong>
-
add
public ULong add(ULong val) throws NumberFormatException
- Throws:
NumberFormatException
-
add
public ULong add(int val) throws NumberFormatException
- Throws:
NumberFormatException
-
add
public ULong add(long val) throws NumberFormatException
- Throws:
NumberFormatException
-
subtract
public ULong subtract(int val)
-
subtract
public ULong subtract(long val)
-
-