Package org.jivesoftware.smack.util
Class NumberUtil
java.lang.Object
org.jivesoftware.smack.util.NumberUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
requireUInt32
(long value) Checks if the given long is within the range of an unsigned 32-bit integer, the XML type "xs:unsignedInt".static int
requireUShort16
(int value) Checks if the given int is within the range of an unsigned 16-bit integer, the XML type "xs:unsignedShort".
-
Constructor Details
-
NumberUtil
public NumberUtil()
-
-
Method Details
-
requireUInt32
Checks if the given long is within the range of an unsigned 32-bit integer, the XML type "xs:unsignedInt".- Parameters:
value
- the long to check.- Returns:
- the input value.
-
requireUShort16
Checks if the given int is within the range of an unsigned 16-bit integer, the XML type "xs:unsignedShort".- Parameters:
value
- the int to check.- Returns:
- the input value.
-