Class UByte
java.lang.Object
java.lang.Number
org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.UNumber
org.apache.tika.parser.microsoft.onenote.fsshttpb.unsigned.UByte
- All Implemented Interfaces:
Serializable,Comparable<UByte>
The
unsigned byte type- Author:
- Lukas Eder, Ed Schaller, Jens Nerche
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UByteA constant holding the maximum value anunsigned bytecan have as UByte, 28-1.static final shortA constant holding the maximum value anunsigned bytecan have, 28-1.static final UByteA constant holding the minimum value anunsigned bytecan have as UByte, 0.static final shortA constant holding the minimum value anunsigned bytecan have, 0. -
Method Summary
Modifier and TypeMethodDescriptionadd(int val) intdoublebooleanfloatinthashCode()intintValue()longsubtract(int val) Get this number as aBigInteger.toString()static UBytevalueOf(byte value) Get an instance of anunsigned byteby masking it with0xFFi.e.static UBytevalueOf(int value) Get an instance of anunsigned bytestatic UBytevalueOf(long value) Get an instance of anunsigned bytestatic UBytevalueOf(short value) Get an instance of anunsigned bytestatic UByteGet an instance of anunsigned byteMethods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
MIN_VALUE
public static final short MIN_VALUEA constant holding the minimum value anunsigned bytecan have, 0.- See Also:
-
MAX_VALUE
public static final short MAX_VALUEA constant holding the maximum value anunsigned bytecan have, 28-1.- See Also:
-
MIN
A constant holding the minimum value anunsigned bytecan have as UByte, 0. -
MAX
A constant holding the maximum value anunsigned bytecan have as UByte, 28-1.
-
-
Method Details
-
valueOf
Get an instance of anunsigned byte- Throws:
NumberFormatException- Ifvaluedoes not contain a parsableunsigned byte.
-
valueOf
Get an instance of anunsigned byteby masking it with0xFFi.e.(byte) -1becomes(ubyte) 255 -
valueOf
Get an instance of anunsigned byte- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte
-
valueOf
Get an instance of anunsigned byte- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte
-
valueOf
Get an instance of anunsigned byte- Throws:
NumberFormatException- Ifvalueis not in the range of anunsigned byte
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
hashCode
public int hashCode() -
equals
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<UByte>
-
toBigInteger
Description copied from class:UNumberGet this number as aBigInteger. This is a convenience method for callingnew BigInteger(toString())- Overrides:
toBigIntegerin classUNumber
-
add
- Throws:
NumberFormatException
-
add
- Throws:
NumberFormatException
-
subtract
-
subtract
-