public final class UnsignedInteger extends java.lang.Number implements java.lang.Comparable<UnsignedInteger>
Modifier and Type | Field and Description |
---|---|
static UnsignedInteger |
MAX_VALUE |
static UnsignedInteger |
ONE |
static UnsignedInteger |
ZERO |
Constructor and Description |
---|
UnsignedInteger(int underlying) |
Modifier and Type | Method and 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) |
public static final UnsignedInteger ZERO
public static final UnsignedInteger ONE
public static final UnsignedInteger MAX_VALUE
public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number
public float floatValue()
floatValue
in class java.lang.Number
public double doubleValue()
doubleValue
in class java.lang.Number
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int compareTo(UnsignedInteger o)
compareTo
in interface java.lang.Comparable<UnsignedInteger>
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static UnsignedInteger valueOf(int underlying)
public UnsignedInteger add(UnsignedInteger i)
public UnsignedInteger subtract(UnsignedInteger i)
public static UnsignedInteger valueOf(java.lang.String value)
public static UnsignedInteger valueOf(long longVal)