Class Unsigned
- java.lang.Object
-
- org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.Unsigned
-
public final class Unsigned extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 UByteubyte(String value)Create anunsigned bytestatic UIntegeruint(int value)Create anunsigned intby masking it with0xFFFFFFFFi.e.static UIntegeruint(long value)Create anunsigned intstatic UIntegeruint(String value)Create anunsigned intstatic ULongulong(long value)Create anunsigned longby masking it with0xFFFFFFFFFFFFFFFFi.e.static ULongulong(String value)Create 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 UShortushort(String value)Create anunsigned short
-
-
-
Method Detail
-
ubyte
public static UByte ubyte(String value) throws NumberFormatException
Create anunsigned byte- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned byte.- See Also:
UByte.valueOf(String)
-
ubyte
public static UByte ubyte(byte value)
Create anunsigned byteby masking it with0xFFi.e.(byte) -1becomes(ubyte) 255- See Also:
UByte.valueOf(byte)
-
ubyte
public static UByte ubyte(short value) throws NumberFormatException
Create anunsigned byte- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte- See Also:
UByte.valueOf(short)
-
ubyte
public static UByte ubyte(int value) throws NumberFormatException
Create anunsigned byte- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte- See Also:
UByte.valueOf(short)
-
ubyte
public static UByte ubyte(long value) throws NumberFormatException
Create anunsigned byte- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte- See Also:
UByte.valueOf(short)
-
ushort
public static UShort ushort(String value) throws NumberFormatException
Create anunsigned short- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned short.- See Also:
UShort.valueOf(String)
-
ushort
public static UShort ushort(short value)
Create anunsigned shortby masking it with0xFFFFi.e.(short) -1becomes(ushort) 65535- See Also:
UShort.valueOf(short)
-
ushort
public static UShort ushort(int value) throws NumberFormatException
Create anunsigned short- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned short- See Also:
UShort.valueOf(int)
-
uint
public static UInteger uint(String value) throws NumberFormatException
Create anunsigned int- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned int.- See Also:
UInteger.valueOf(String)
-
uint
public static UInteger uint(int value)
Create anunsigned intby masking it with0xFFFFFFFFi.e.(int) -1becomes(uint) 4294967295- See Also:
UInteger.valueOf(int)
-
uint
public static UInteger uint(long value) throws NumberFormatException
Create anunsigned int- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned int- See Also:
UInteger.valueOf(long)
-
ulong
public static ULong ulong(String value) throws NumberFormatException
Create anunsigned long- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned long.- See Also:
ULong.valueOf(String)
-
ulong
public static ULong ulong(long value)
Create anunsigned longby masking it with0xFFFFFFFFFFFFFFFFi.e.(long) -1becomes(uint) 18446744073709551615- See Also:
ULong.valueOf(long)
-
ulong
public static ULong ulong(BigInteger value) throws NumberFormatException
Create anunsigned long- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned long- See Also:
ULong.valueOf(BigInteger)
-
-