Package org.apache.qpid.proton.amqp
Class UnsignedInteger
- java.lang.Object
-
- java.lang.Number
-
- org.apache.qpid.proton.amqp.UnsignedInteger
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UnsignedInteger>
public final class UnsignedInteger extends java.lang.Number implements java.lang.Comparable<UnsignedInteger>
- 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(java.lang.Object o)
float
floatValue()
int
hashCode()
int
intValue()
long
longValue()
UnsignedInteger
subtract(UnsignedInteger i)
java.lang.String
toString()
static UnsignedInteger
valueOf(int underlying)
static UnsignedInteger
valueOf(long longVal)
static UnsignedInteger
valueOf(java.lang.String value)
-
-
-
Field Detail
-
ZERO
public static final UnsignedInteger ZERO
-
ONE
public static final UnsignedInteger ONE
-
MAX_VALUE
public static final UnsignedInteger MAX_VALUE
-
-
Method Detail
-
intValue
public int intValue()
- Specified by:
intValue
in classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValue
in classjava.lang.Number
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classjava.lang.Number
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classjava.lang.Number
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(UnsignedInteger o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<UnsignedInteger>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
valueOf
public static UnsignedInteger valueOf(int underlying)
-
add
public UnsignedInteger add(UnsignedInteger i)
-
subtract
public UnsignedInteger subtract(UnsignedInteger i)
-
valueOf
public static UnsignedInteger valueOf(java.lang.String value)
-
valueOf
public static UnsignedInteger valueOf(long longVal)
-
-