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 UByteubyte(byte value) Create anunsigned byteby masking it with0xFFi.e.static UByteubyte(int value) Create anunsigned bytestatic UByteubyte(long value) Create anunsigned bytestatic UByteubyte(short value) Create anunsigned bytestatic UByteCreate anunsigned bytestatic UIntegeruint(int value) Create anunsigned intby masking it with0xFFFFFFFFi.e.static UIntegeruint(long value) Create anunsigned intstatic UIntegerCreate anunsigned intstatic ULongulong(long value) Create anunsigned longby masking it with0xFFFFFFFFFFFFFFFFi.e.static ULongCreate anunsigned longstatic ULongulong(BigInteger value) Create anunsigned longstatic UShortushort(int value) Create anunsigned shortstatic UShortushort(short value) Create anunsigned shortby masking it with0xFFFFi.e.static UShortCreate anunsigned short
-
Method Details
-
ubyte
Create anunsigned byte- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned byte.- See Also:
-
ubyte
Create anunsigned byteby masking it with0xFFi.e.(byte) -1becomes(ubyte) 255- See Also:
-
ubyte
Create anunsigned byte- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte- See Also:
-
ubyte
Create anunsigned byte- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte- See Also:
-
ubyte
Create anunsigned byte- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte- See Also:
-
ushort
Create anunsigned short- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned short.- See Also:
-
ushort
Create anunsigned shortby masking it with0xFFFFi.e.(short) -1becomes(ushort) 65535- See Also:
-
ushort
Create anunsigned short- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned short- See Also:
-
uint
Create anunsigned int- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned int.- See Also:
-
uint
Create anunsigned intby masking it with0xFFFFFFFFi.e.(int) -1becomes(uint) 4294967295- See Also:
-
uint
Create anunsigned int- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned int- See Also:
-
ulong
Create anunsigned long- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned long.- See Also:
-
ulong
Create anunsigned longby masking it with0xFFFFFFFFFFFFFFFFi.e.(long) -1becomes(uint) 18446744073709551615- See Also:
-
ulong
Create anunsigned long- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned long- See Also:
-