Package com.rabbitmq.stream.amqp
Class UnsignedInteger
- java.lang.Object
-
- java.lang.Number
-
- com.rabbitmq.stream.amqp.UnsignedInteger
-
- All Implemented Interfaces:
Serializable,Comparable<UnsignedInteger>
public final class UnsignedInteger extends Number implements Comparable<UnsignedInteger>
This code is based on QPid Proton'sUnsignedIntegerclass.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static UnsignedIntegerMAX_VALUEstatic UnsignedIntegerONEstatic UnsignedIntegerZERO
-
Constructor Summary
Constructors Constructor Description UnsignedInteger(int underlying)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnsignedIntegeradd(UnsignedInteger i)intcompareTo(UnsignedInteger o)doubledoubleValue()booleanequals(Object o)floatfloatValue()inthashCode()intintValue()longlongValue()UnsignedIntegersubtract(UnsignedInteger i)StringtoString()static UnsignedIntegervalueOf(int underlying)static UnsignedIntegervalueOf(long longVal)static UnsignedIntegervalueOf(String value)-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Field Detail
-
MAX_VALUE
public static final UnsignedInteger MAX_VALUE
-
ZERO
public static final UnsignedInteger ZERO
-
ONE
public static final UnsignedInteger ONE
-
-
Method Detail
-
valueOf
public static UnsignedInteger valueOf(int underlying)
-
valueOf
public static UnsignedInteger valueOf(String value)
-
valueOf
public static UnsignedInteger valueOf(long longVal)
-
floatValue
public float floatValue()
- Specified by:
floatValuein classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classNumber
-
compareTo
public int compareTo(UnsignedInteger o)
- Specified by:
compareToin interfaceComparable<UnsignedInteger>
-
add
public UnsignedInteger add(UnsignedInteger i)
-
subtract
public UnsignedInteger subtract(UnsignedInteger i)
-
-