Package org.seppiko.commons.utils
Class Base62
java.lang.Object
org.seppiko.commons.utils.Base62
public class Base62
extends java.lang.Object
Base62 util
- Author:
- Leonard Woo
-
Constructor Summary
Constructors Constructor Description Base62() -
Method Summary
Modifier and Type Method Description static longdecodeFromString(java.lang.String str)decode Base62 string to numberstatic java.lang.StringencodeToString(long source)encode number to Base62 stringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Base62
public Base62()
-
-
Method Details
-
encodeToString
public static java.lang.String encodeToString(long source)encode number to Base62 string- Parameters:
source- number- Returns:
- Base62
-
decodeFromString
public static long decodeFromString(java.lang.String str)decode Base62 string to number- Parameters:
str- Base62- Returns:
- number
-