Class Unsigned
java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.Unsigned
A utility class for static access to unsigned number functionality.
It essentially contains factory methods for unsigned number wrappers. In future versions, it will also contain some arithmetic methods, handling regular arithmetic and bitwise operations
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionstatic UByte
ubyte
(byte value) Create anunsigned byte
by masking it with0xFF
i.e.static UByte
ubyte
(int value) Create anunsigned byte
static UByte
ubyte
(long value) Create anunsigned byte
static UByte
ubyte
(short value) Create anunsigned byte
static UByte
Create anunsigned byte
static UInteger
uint
(int value) Create anunsigned int
by masking it with0xFFFFFFFF
i.e.static UInteger
uint
(long value) Create anunsigned int
static UInteger
Create anunsigned int
static ULong
ulong
(long value) Create anunsigned long
by masking it with0xFFFFFFFFFFFFFFFF
i.e.static ULong
Create anunsigned long
static ULong
ulong
(BigInteger value) Create anunsigned long
static UShort
ushort
(int value) Create anunsigned short
static UShort
ushort
(short value) Create anunsigned short
by masking it with0xFFFF
i.e.static UShort
Create anunsigned short
-
Method Details
-
ubyte
Create anunsigned byte
- Throws:
NumberFormatException
- Ifvalue
does not contain a parsableunsigned byte
.- See Also:
-
ubyte
Create anunsigned byte
by masking it with0xFF
i.e.(byte) -1
becomes(ubyte) 255
- See Also:
-
ubyte
Create anunsigned byte
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned byte
- See Also:
-
ubyte
Create anunsigned byte
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned byte
- See Also:
-
ubyte
Create anunsigned byte
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned byte
- See Also:
-
ushort
Create anunsigned short
- Throws:
NumberFormatException
- Ifvalue
does not contain a parsableunsigned short
.- See Also:
-
ushort
Create anunsigned short
by masking it with0xFFFF
i.e.(short) -1
becomes(ushort) 65535
- See Also:
-
ushort
Create anunsigned short
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned short
- See Also:
-
uint
Create anunsigned int
- Throws:
NumberFormatException
- Ifvalue
does not contain a parsableunsigned int
.- See Also:
-
uint
Create anunsigned int
by masking it with0xFFFFFFFF
i.e.(int) -1
becomes(uint) 4294967295
- See Also:
-
uint
Create anunsigned int
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned int
- See Also:
-
ulong
Create anunsigned long
- Throws:
NumberFormatException
- Ifvalue
does not contain a parsableunsigned long
.- See Also:
-
ulong
Create anunsigned long
by masking it with0xFFFFFFFFFFFFFFFF
i.e.(long) -1
becomes(uint) 18446744073709551615
- See Also:
-
ulong
Create anunsigned long
- Throws:
NumberFormatException
- Ifvalue
is not in the range of anunsigned long
- See Also:
-