public class UInt32 extends Number implements Comparable<UInt32>
| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_VALUE
Maximum allowed value
|
static long |
MIN_VALUE
Minimum allowed value
|
| Constructor and Description |
|---|
UInt32(long value)
Create a UInt32 from a long.
|
UInt32(String value)
Create a UInt32 from a String.
|
| Modifier and Type | Method and 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(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.
|
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_VALUENumberFormatException - if value is not between MIN_VALUE and MAX_VALUEpublic UInt32(String value)
value - Must parse to a valid integer within MIN_VALUE–MAX_VALUENumberFormatException - if value is not an integer between MIN_VALUE and MAX_VALUEpublic double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic long longValue()
public short shortValue()
shortValue in class Numberpublic boolean equals(Object o)
public int compareTo(UInt32 other)
compareTo in interface Comparable<UInt32>Copyright © 2016 JBoss by Red Hat. All rights reserved.