public class UnsignedInteger32 extends 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(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(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.
|
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
- NumberFormatException
public UnsignedInteger32(String a) throws NumberFormatException
a
- NumberFormatException
public int intValue()
public long longValue()
public String toString()
public int hashCode()
public boolean equals(Object o)
public static UnsignedInteger32 add(UnsignedInteger32 x, UnsignedInteger32 y)
x
- y
- public static UnsignedInteger32 add(UnsignedInteger32 x, int y)
x
- y
- Copyright © 2024. All rights reserved.