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 UInt16MAX_VALUEstatic intMAX_VALUE_INTstatic UInt16MIN_VALUEstatic intMIN_VALUE_INT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(UInt16 o)booleanequals(Object other)static UInt16from(int number)UInt16getMaxValue()UInt16getMinValue()inthashCode()UInt16incrementedByOne()intnativeRepresentation()-
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:
compareToin interfaceComparable<UInt16>
-
getMinValue
public UInt16 getMinValue()
- Specified by:
getMinValuein classScalar
-
getMaxValue
public UInt16 getMaxValue()
- Specified by:
getMaxValuein classScalar
-
incrementedByOne
public UInt16 incrementedByOne()
- Specified by:
incrementedByOnein classScalar
-
-