java.io.Serializable, java.lang.Comparable<UInteger>public final class UInteger extends UNumber implements java.lang.Comparable<UInteger>
unsigned int type| Modifier and Type | Field | Description |
|---|---|---|
static UInteger |
MAX |
A constant holding the maximum value an
unsigned int can
have as UInteger, 232-1. |
static long |
MAX_VALUE |
A constant holding the maximum value an
unsigned int can
have, 232-1. |
static UInteger |
MIN |
A constant holding the minimum value an
unsigned int can
have as UInteger, 0. |
static long |
MIN_VALUE |
A constant holding the minimum value an
unsigned int can
have, 0. |
| Modifier and Type | Method | Description |
|---|---|---|
UInteger |
add(int val) |
|
UInteger |
add(UInteger val) |
|
int |
compareTo(UInteger o) |
|
double |
doubleValue() |
|
boolean |
equals(java.lang.Object obj) |
|
float |
floatValue() |
|
int |
hashCode() |
|
int |
intValue() |
|
long |
longValue() |
|
UInteger |
subtract(int val) |
|
UInteger |
subtract(UInteger val) |
|
java.math.BigInteger |
toBigInteger() |
Get this number as a
BigInteger. |
java.lang.String |
toString() |
|
static UInteger |
valueOf(int value) |
Create an
unsigned int by masking it with
0xFFFFFFFF i.e. |
static UInteger |
valueOf(long value) |
Create an
unsigned int |
static UInteger |
valueOf(java.lang.String value) |
Create an
unsigned int |
public static final long MIN_VALUE
unsigned int can
have, 0.public static final long MAX_VALUE
unsigned int can
have, 232-1.public static final UInteger MIN
unsigned int can
have as UInteger, 0.public static final UInteger MAX
unsigned int can
have as UInteger, 232-1.public static UInteger valueOf(java.lang.String value) throws java.lang.NumberFormatException
unsigned intjava.lang.NumberFormatException - If value does not contain a
parsable unsigned int.public static UInteger valueOf(int value)
unsigned int by masking it with
0xFFFFFFFF i.e. (int) -1 becomes
(uint) 4294967295public static UInteger valueOf(long value) throws java.lang.NumberFormatException
unsigned intjava.lang.NumberFormatException - If value is not in the range
of an unsigned bytepublic 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 java.math.BigInteger toBigInteger()
UNumberBigInteger. This is a convenience method for
calling new BigInteger(toString())toBigInteger in class UNumberpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(UInteger o)
compareTo in interface java.lang.Comparable<UInteger>public UInteger add(int val)
public UInteger subtract(int val)
Copyright © 2018. All rights reserved.