ix.iserve.ipc
Class TinyIds
java.lang.Object
ix.iserve.ipc.TinyIds
public class TinyIds
- extends java.lang.Object
Generates short ids that correspond to long ones.
Method Summary |
java.lang.String |
getLongId(java.lang.String tinyId)
|
long |
getSeed()
|
java.lang.String |
getTinyId(java.lang.String longId)
|
static void |
main(java.lang.String[] argv)
Main program for testing. |
void |
setSeed(long uc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TinyIds
public TinyIds()
TinyIds
public TinyIds(long seed)
getSeed
public long getSeed()
setSeed
public void setSeed(long uc)
getTinyId
public java.lang.String getTinyId(java.lang.String longId)
getLongId
public java.lang.String getLongId(java.lang.String tinyId)
main
public static void main(java.lang.String[] argv)
- Main program for testing.