Package com.atlassian.jira.search.utils
Class NumberUtils
java.lang.Object
com.atlassian.jira.search.utils.NumberUtils
Provides support for converting longs to Base36 Strings, and back again.
The strings are structured so that lexicographic sorting order is preserved.
Copied from lucene-extras
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringlongToString(long l) static longstringToLong(String str) Converts a String that was returned bylongToString(long)back to a long.
-
Field Details
-
MIN_STRING_VALUE
Equivalent to longToString(Long.MIN_VALUE)- See Also:
-
MAX_STRING_VALUE
Equivalent to longToString(Long.MAX_VALUE)- See Also:
-
-
Method Details
-
longToString
-
stringToLong
Converts a String that was returned bylongToString(long)back to a long.- Throws:
IllegalArgumentException- if the input is nullNumberFormatException- if the input does not parse (it was not a String returned by longToString()).
-