|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Number org.freedesktop.dbus.UInt32
public class UInt32
Class to represent unsigned 32-bit numbers.
Field Summary | |
---|---|
static long |
MAX_VALUE
Maximum allowed value |
static long |
MIN_VALUE
Minimum allowed value |
Constructor Summary | |
---|---|
UInt32(long value)
Create a UInt32 from a long. |
|
UInt32(String value)
Create a UInt32 from a String. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long MAX_VALUE
public static final long MIN_VALUE
Constructor Detail |
---|
public UInt32(long value)
value
- Must be a valid integer within MIN_VALUE–MAX_VALUE
NumberFormatException
- if value is not between MIN_VALUE and MAX_VALUEpublic UInt32(String value)
value
- Must parse to a valid integer within MIN_VALUE–MAX_VALUE
NumberFormatException
- if value is not an integer between MIN_VALUE and MAX_VALUEMethod Detail |
---|
public byte byteValue()
byteValue
in class Number
public double doubleValue()
doubleValue
in class Number
public float floatValue()
floatValue
in class Number
public int intValue()
intValue
in class Number
public long longValue()
longValue
in class Number
public short shortValue()
shortValue
in class Number
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int compareTo(UInt32 other)
compareTo
in interface Comparable<UInt32>
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |