java.lang.Object
java.lang.Number
org.jooq.types.UNumber
org.jooq.types.UShort
- All Implemented Interfaces:
- Serializable,- Comparable<UShort>
The 
unsigned short type- Author:
- Lukas Eder, Jens Nerche
- See Also:
- 
Field SummaryFieldsModifier 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 SummaryModifier 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.NumberbyteValue, shortValue
- 
Field Details- 
MIN_VALUEpublic static final int MIN_VALUEA constant holding the minimum value anunsigned shortcan have, 0.- See Also:
 
- 
MAX_VALUEpublic static final int MAX_VALUEA constant holding the maximum value anunsigned shortcan have, 216-1.- See Also:
 
- 
MINA constant holding the minimum value anunsigned shortcan have as UShort, 0.
- 
MAXA constant holding the maximum value anunsigned shortcan have as UShort, 216-1.
 
- 
- 
Method Details- 
valueOfCreate anunsigned short- Throws:
- NumberFormatException- If- valuedoes not contain a parsable- unsigned short.
 
- 
valueOfCreate anunsigned shortby masking it with0xFFFFi.e.(short) -1becomes(ushort) 65535
- 
valueOfCreate anunsigned short- Throws:
- NumberFormatException- If- valueis not in the range of an- unsigned short
 
- 
intValuepublic int intValue()
- 
longValuepublic long longValue()
- 
floatValuepublic float floatValue()- Specified by:
- floatValuein class- Number
 
- 
doubleValuepublic double doubleValue()- Specified by:
- doubleValuein class- Number
 
- 
toBigIntegerDescription copied from class:UNumberGet this number as aBigInteger. This is a convenience method for callingnew BigInteger(toString())- Overrides:
- toBigIntegerin class- UNumber
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
- 
compareTo- Specified by:
- compareToin interface- Comparable<UShort>
 
- 
add- Throws:
- NumberFormatException
 
- 
add- Throws:
- NumberFormatException
 
- 
subtract
- 
subtract
 
-