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.Numberpublic long longValue()
longValue in class java.lang.Numberpublic float floatValue()
floatValue in class java.lang.Numberpublic double doubleValue()
doubleValue in class java.lang.Numberpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(UnsignedInteger o)
compareTo in interface java.lang.Comparable<UnsignedInteger>public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic 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)