Package me.olhalvo.unum.types.overflow
Class UByteO
java.lang.Object
java.lang.Number
me.olhalvo.unum.types.UNumber
me.olhalvo.unum.types.UByte
me.olhalvo.unum.types.overflow.UByteO
- All Implemented Interfaces:
Serializable,Comparable<Number>
Class used to represent an unsigned byte with overflow (wrap around) behavior
(0 to 255)
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected UByteOnewInstance(byte value) Protected methods to be used so that arithmetic methods can have similar behaviour in overflow classesprotected UByteOnewInstance(int value) Protected methods to be used so that arithmetic methods can have similar behaviour in overflow classesprotected UByteOnewInstance(long value) Protected methods to be used so that arithmetic methods can have similar behaviour in overflow classesprotected UByteOnewInstance(short value) Protected methods to be used so that arithmetic methods can have similar behaviour in overflow classesstatic UByteOvalueOf(byte value) see: #valueOf(short)static UByteOvalueOf(int value) see: #valueOf(short)static UByteOvalueOf(long value) see: #valueOf(short)static UByteOvalueOf(short value) Static factory method to create a UByteO from a valuestatic UByteOParses the string argument as an unsigned byte in base 10.Methods inherited from class me.olhalvo.unum.types.UByte
add, and, asOverflow, divide, doubleValue, equals, floatValue, hashCode, intValue, longValue, lsl, lsr, multiply, not, or, remainder, subtract, toString, xorMethods inherited from class java.lang.Number
byteValue, shortValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
valueOf
Static factory method to create a UByteO from a value- Parameters:
value- the value to convert- Returns:
- the UByteO representation of the value
-
valueOf
see: #valueOf(short) -
valueOf
see: #valueOf(short) -
valueOf
see: #valueOf(short) -
valueOf
Parses the string argument as an unsigned byte in base 10. for limitations seeShort.parseShort(String)- Parameters:
value- the string to parse- Returns:
- the UByteO representation of the value
-
newInstance
Description copied from class:UByteProtected methods to be used so that arithmetic methods can have similar behaviour in overflow classes- Overrides:
newInstancein classUByte- See Also:
-
newInstance
Description copied from class:UByteProtected methods to be used so that arithmetic methods can have similar behaviour in overflow classes- Overrides:
newInstancein classUByte- See Also:
-
newInstance
Description copied from class:UByteProtected methods to be used so that arithmetic methods can have similar behaviour in overflow classes- Overrides:
newInstancein classUByte- See Also:
-
newInstance
Description copied from class:UByteProtected methods to be used so that arithmetic methods can have similar behaviour in overflow classes- Overrides:
newInstancein classUByte- See Also:
-