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'sUnsignedInteger
class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static UnsignedInteger
MAX_VALUE
static UnsignedInteger
ONE
static UnsignedInteger
ZERO
-
Constructor Summary
Constructors Constructor Description UnsignedInteger(int underlying)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnsignedInteger
add(UnsignedInteger i)
int
compareTo(UnsignedInteger o)
double
doubleValue()
boolean
equals(Object o)
float
floatValue()
int
hashCode()
int
intValue()
long
longValue()
UnsignedInteger
subtract(UnsignedInteger i)
String
toString()
static UnsignedInteger
valueOf(int underlying)
static UnsignedInteger
valueOf(long longVal)
static UnsignedInteger
valueOf(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:
floatValue
in classNumber
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
compareTo
public int compareTo(UnsignedInteger o)
- Specified by:
compareTo
in interfaceComparable<UnsignedInteger>
-
add
public UnsignedInteger add(UnsignedInteger i)
-
subtract
public UnsignedInteger subtract(UnsignedInteger i)
-
-