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 UInt32MAX_VALUEstatic longMAX_VALUE_LONGstatic UInt32MIN_VALUEstatic longMIN_VALUE_LONG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)static UInt32from(long number)UInt32getMaxValue()UInt32getMinValue()inthashCode()UInt32incrementedByOne()longnativeRepresentation()-
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
-
MIN_VALUE
public static final UInt32 MIN_VALUE
-
MAX_VALUE
public static final UInt32 MAX_VALUE
-
-
Method Detail
-
nativeRepresentation
public long nativeRepresentation()
-
from
public static UInt32 from(long number)
-
getMinValue
public UInt32 getMinValue()
- Specified by:
getMinValuein classScalar
-
getMaxValue
public UInt32 getMaxValue()
- Specified by:
getMaxValuein classScalar
-
incrementedByOne
public UInt32 incrementedByOne()
- Specified by:
incrementedByOnein classScalar
-
-