Class UnsignedNumberUtil
java.lang.Object
io.protostuff.UnsignedNumberUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the unsignedintvalue represented by the given decimal string.static longReturns the unsignedlongvalue represented by the given decimal string.static StringunsignedIntToString(int x) Returns a string representation of x, where x is treated as unsigned.static StringunsignedLongToString(long x) Returns a string representation of x, where x is treated as unsigned.
-
Field Details
-
MAX_VALUE
public static final long MAX_VALUE- See Also:
-
-
Method Details
-
parseUnsignedInt
Returns the unsignedintvalue represented by the given decimal string.- Throws:
NumberFormatException- if the string does not contain a valid unsignedintvalueNullPointerException- ifsis null (in contrast toInteger.parseInt(String))
-
unsignedIntToString
Returns a string representation of x, where x is treated as unsigned. -
parseUnsignedLong
Returns the unsignedlongvalue represented by the given decimal string.- Throws:
NumberFormatException- if the string does not contain a valid unsignedlongvalueNullPointerException- ifsis null (in contrast toLong.parseLong(String))
-
unsignedLongToString
Returns a string representation of x, where x is treated as unsigned.
-