com.ls.lars.communication
Class KeyG
java.lang.Object
|
+--com.ls.lars.communication.KeyG
- public class KeyG
- extends Object
This class provides a unique key generator
- Version:
- $Revision: 1.2 $
- Author:
- Last modified by $Author: ODrugan $
Constructor Summary |
KeyG()
empty constructor |
Method Summary |
static String |
createKey()
Creates a unique key by adding one to the current key and returning it. |
static void |
initKey()
Initialize the key with the current time in milliseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyG
public KeyG()
- empty constructor
initKey
public static void initKey()
- Initialize the key with the current time in milliseconds.
createKey
public static String createKey()
- Creates a unique key by adding one to the current key and returning it.
- Returns:
- Unique key as a String