java.io.Serializable
, java.lang.Comparable<UInt32>
public class UInt32 extends java.lang.Number implements java.lang.Comparable<UInt32>
Modifier and Type | Field | Description |
---|---|---|
static long |
MAX_VALUE |
Maximum allowed value
|
static long |
MIN_VALUE |
Minimum allowed value
|
Constructor | Description |
---|---|
UInt32(long value) |
Create a UInt32 from a long.
|
UInt32(java.lang.String value) |
Create a UInt32 from a String.
|
Modifier and Type | Method | Description |
---|---|---|
byte |
byteValue() |
The value of this as a byte.
|
int |
compareTo(UInt32 other) |
Compare two UInt32s.
|
double |
doubleValue() |
The value of this as a double.
|
boolean |
equals(java.lang.Object o) |
Test two UInt32s for equality.
|
float |
floatValue() |
The value of this as a float.
|
int |
hashCode() |
|
int |
intValue() |
The value of this as a int.
|
long |
longValue() |
The value of this as a long.
|
short |
shortValue() |
The value of this as a short.
|
java.lang.String |
toString() |
The value of this as a string
|
public static final long MAX_VALUE
public static final long MIN_VALUE
public UInt32(long value)
value
- Must be a valid integer within MIN_VALUE–MAX_VALUEjava.lang.NumberFormatException
- if value is not between MIN_VALUE and MAX_VALUEpublic UInt32(java.lang.String value)
value
- Must parse to a valid integer within MIN_VALUE–MAX_VALUEjava.lang.NumberFormatException
- if value is not an integer between MIN_VALUE and MAX_VALUEpublic byte byteValue()
byteValue
in class java.lang.Number
public double doubleValue()
doubleValue
in class java.lang.Number
public float floatValue()
floatValue
in class java.lang.Number
public int intValue()
intValue
in class java.lang.Number
public long longValue()
longValue
in class java.lang.Number
public short shortValue()
shortValue
in class java.lang.Number
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(UInt32 other)
compareTo
in interface java.lang.Comparable<UInt32>
public java.lang.String toString()
toString
in class java.lang.Object