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