unsigned int type
| Modifier and Type | Field and Description |
|---|---|
| private static final Class | |
| private static final String | |
| private static final int | DEFAULT_PRECACHE_SIZE
Default size for the value cache. |
| public static final UInteger | MAX
A constant holding the maximum value an |
| public static final long | MAX_VALUE
A constant holding the maximum value an |
| public static final UInteger | MIN
A constant holding the minimum value an |
| public static final long | MIN_VALUE
A constant holding the minimum value an |
| private static final String | PRECACHE_PROPERTY
System property name for the property to set the size of the pre-cache. |
| private static final long | serialVersionUID
Generated UID
|
| private final long | value
The value modelling the content of this |
| private static final UInteger[] | VALUES
Cached values |
| Access | Constructor and Description |
|---|---|
| private | UInteger(long
The value to wrap value, boolean Unused parameter to distinguish between this and the
deprecated public constructor. unused)Unchecked internal constructor. |
| private | |
| private | UInteger(int value)
Create an |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public UInteger | |
| public UInteger | |
| public int | compareTo(UInteger
the object to be compared. o)Implements java. |
| public double | doubleValue()
Implements abstract java. double.
|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public float | floatValue()
Implements abstract java. float.
|
| private static UInteger | Returns: Cached value if one exists. Null otherwise.Cached value to retrieve value)Retrieve a cached value. |
| private static final int | Returns: The parsed value of the system propertyPRECACHE_PROPERTY or DEFAULT_PRECACHE_SIZE if
the property is not set, not a number or retrieving results in a
SecurityException. If the parsed value is zero or
negative no cache will be created. If the value is larger than
Integer#MAX_VALUE then Integer#MAX_VALUE will be used.Figure out the size of the precache. |
| public int | |
| public int | intValue()
Implements abstract java. int.
|
| public long | longValue()
Implements abstract java. long.
|
| private static final UInteger[] | Returns: Array of cached values for UIntegerGenerate a cached value for initial unsigned integer values. |
| private static long | Returns: value if it is in rangeValue to check value)Throw exception if value out of range (long version) |
| private Object | Returns: cached instance of this object's value if one exists, otherwise this objectReplace version read through deserialization with cached version. |
| public UInteger | |
| public UInteger | |
| public BigInteger | |
| public String | |
| public static UInteger | |
| public static UInteger | valueOf(int value)
Create an |
| public static UInteger | |
| private static UInteger |
| CLASS | back to summary |
|---|---|
| private static final Class<UInteger> CLASS | |
| CLASS_NAME | back to summary |
|---|---|
| private static final String CLASS_NAME | |
| DEFAULT_PRECACHE_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_PRECACHE_SIZE Default size for the value cache. | |
| MAX | back to summary |
|---|---|
| public static final UInteger MAX A constant holding the maximum value an | |
| MAX_VALUE | back to summary |
|---|---|
| public static final long MAX_VALUE A constant holding the maximum value an | |
| MIN | back to summary |
|---|---|
| public static final UInteger MIN A constant holding the minimum value an | |
| MIN_VALUE | back to summary |
|---|---|
| public static final long MIN_VALUE A constant holding the minimum value an | |
| PRECACHE_PROPERTY | back to summary |
|---|---|
| private static final String PRECACHE_PROPERTY System property name for the property to set the size of the pre-cache. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Generated UID | |
| value | back to summary |
|---|---|
| private final long value The value modelling the content of this | |
| VALUES | back to summary |
|---|---|
| private static final UInteger[] VALUES Cached values | |
| UInteger | back to summary |
|---|---|
| private UInteger(long value, boolean unused) Unchecked internal constructor. This serves two purposes: first it allows
| |
| UInteger | back to summary |
|---|---|
| private UInteger(long value) throws NumberFormatException Create an
| |
| UInteger | back to summary |
|---|---|
| private UInteger(int value) Create an | |
| UInteger | back to summary |
|---|---|
| private UInteger(String value) throws NumberFormatException Create an
| |
| add | back to summary |
|---|---|
| public UInteger add(final UInteger val) | |
| add | back to summary |
|---|---|
| public UInteger add(final int val) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(UInteger o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| doubleValue | back to summary |
|---|---|
| public double doubleValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| floatValue | back to summary |
|---|---|
| public float floatValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| getCached | back to summary |
|---|---|
| private static UInteger getCached(long value) Retrieve a cached value.
| |
| getPrecacheSize | back to summary |
|---|---|
| private static final int getPrecacheSize() Figure out the size of the precache.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| intValue | back to summary |
|---|---|
| public int intValue() Implements abstract java. Doc from java. Returns the value of the specified number as an
| |
| longValue | back to summary |
|---|---|
| public long longValue() Implements abstract java. Doc from java. Returns the value of the specified number as a
| |
| mkValues | back to summary |
|---|---|
| private static final UInteger[] mkValues() Generate a cached value for initial unsigned integer values.
| |
| rangeCheck | back to summary |
|---|---|
| private static long rangeCheck(long value) throws NumberFormatException Throw exception if value out of range (long version)
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() throws ObjectStreamException Replace version read through deserialization with cached version.
| |
| subtract | back to summary |
|---|---|
| public UInteger subtract(final UInteger val) | |
| subtract | back to summary |
|---|---|
| public UInteger subtract(final int val) | |
| toBigInteger | back to summary |
|---|---|
| public BigInteger toBigInteger() Overrides org. Doc from org. Get this number as a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| valueOf | back to summary |
|---|---|
| public static UInteger valueOf(String value) throws NumberFormatException Create an
| |
| valueOf | back to summary |
|---|---|
| public static UInteger valueOf(int value) Create an | |
| valueOf | back to summary |
|---|---|
| public static UInteger valueOf(long value) throws NumberFormatException Create an
| |
| valueOfUnchecked | back to summary |
|---|---|
| private static UInteger valueOfUnchecked(long value) Get the value of a long without checking the value. | |