Package org.jivesoftware.smack.datatypes
Class UInt32
- java.lang.Object
-
- java.lang.Number
-
- org.jivesoftware.smack.datatypes.Scalar
-
- org.jivesoftware.smack.datatypes.UInt32
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.CharSequence
,DefaultCharSequence
public final class UInt32 extends Scalar
A number representing an unsigned 32-bit integer. Can be used for values with the XML schema type "xs:unsignedInt".- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static UInt32
MAX_VALUE
static long
MAX_VALUE_LONG
static UInt32
MIN_VALUE
static long
MIN_VALUE_LONG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
static UInt32
from(long number)
UInt32
getMaxValue()
UInt32
getMinValue()
int
hashCode()
UInt32
incrementedByOne()
long
nativeRepresentation()
-
Methods inherited from class org.jivesoftware.smack.datatypes.Scalar
doubleValue, floatValue, intValue, longValue, number, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.util.DefaultCharSequence
charAt, length, subSequence
-
-
-
-
Field Detail
-
MIN_VALUE_LONG
public static final long MIN_VALUE_LONG
- See Also:
- Constant Field Values
-
MAX_VALUE_LONG
public static final long MAX_VALUE_LONG
- See Also:
- Constant Field Values
-
-
Method Detail
-
nativeRepresentation
public long nativeRepresentation()
-
getMinValue
public UInt32 getMinValue()
- Specified by:
getMinValue
in classScalar
-
getMaxValue
public UInt32 getMaxValue()
- Specified by:
getMaxValue
in classScalar
-
incrementedByOne
public UInt32 incrementedByOne()
- Specified by:
incrementedByOne
in classScalar
-
-