Class NumberUtils
java.lang.Object
com.atlassian.jira.search.issue.index.indexers.impl.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 String
longToString
(long l) static long
stringToLong
(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:
-
-
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()).
-