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