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