List of utility methods to do Long to Base
String | longToBase36(long decimalNumber) Converts a long to base 36. long base = 36; String tempVal = decimalNumber == 0 ? "0" : ""; int mod = 0; while (decimalNumber != 0) { long m = decimalNumber % base; mod = (int) m; tempVal = DIGITS.substring(mod, mod + 1) + tempVal; decimalNumber = decimalNumber / base; ... |
String | longToBase36(long in) Convert a long to a lowercase base36 string return Long.toString(in, 36).toLowerCase();
|
String | longToBase64(long number) long To Base return Base64.getEncoder().encodeToString(longToBytes(number));
|