public class UnsignedInteger32
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_VALUE
The maximum value of a 32bit unsigned integer
|
static long |
MIN_VALUE
The minimum value of a 32bit unsigned integer
|
| Constructor and Description |
|---|
UnsignedInteger32(long a)
Creates a new UnsignedInteger32 object.
|
UnsignedInteger32(java.lang.String a)
Creates a new UnsignedInteger32 object.
|
| Modifier and Type | Method and Description |
|---|---|
static UnsignedInteger32 |
add(UnsignedInteger32 x,
int y)
Add an int to an unsigned integer.
|
static UnsignedInteger32 |
add(UnsignedInteger32 x,
UnsignedInteger32 y)
Add two unsigned integers together.
|
boolean |
equals(java.lang.Object o)
Compares an object.
|
int |
hashCode()
Returns the objects hash code.
|
int |
intValue()
Returns the long value of the unsigned integer cast to an int
|
long |
longValue()
Returns the long value of this unsigned integer.
|
java.lang.String |
toString()
Returns a String representation of the unsigned integer.
|
public static final long MAX_VALUE
public static final long MIN_VALUE
public UnsignedInteger32(long a)
a - java.lang.NumberFormatExceptionpublic UnsignedInteger32(java.lang.String a)
throws java.lang.NumberFormatException
a - java.lang.NumberFormatExceptionpublic int intValue()
public long longValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - public static UnsignedInteger32 add(UnsignedInteger32 x, UnsignedInteger32 y)
x - y - public static UnsignedInteger32 add(UnsignedInteger32 x, int y)
x - y - Copyright © 2022. All rights reserved.