www.element4solution.com

e4s.util
Class E4UniqueIdentifier

java.lang.Object
  extended by e4s.util.E4UniqueIdentifier

public class E4UniqueIdentifier
extends java.lang.Object

Supports a "unique" Identifier by an system wide incremented long value.

Since:
JDK 1.4

Constructor Summary
E4UniqueIdentifier()
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
static long get()
          Get a "unique" ID, which is an incremented number, starting at 1 and less or equal Long.MAX_VALUE.
static java.lang.String get(char ch)
          Get a "unique" ID, which is a combination of a character specified and an incremented number, starting at 1 and less or equal Long.MAX_VALUE.
static java.lang.String get(java.lang.String str)
          Get a "unique" ID, which is a combination of a character specified and an incremented number, starting at 1 and less or equal Long.MAX_VALUE.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E4UniqueIdentifier

public E4UniqueIdentifier()
Method Detail

get

public static java.lang.String get(char ch)
Get a "unique" ID, which is a combination of a character specified and an incremented number, starting at 1 and less or equal Long.MAX_VALUE. When maximum is reached, startes again at 1.

Parameters:
ch - a character for more identification
See Also:
get(String)

get

public static long get()
Get a "unique" ID, which is an incremented number, starting at 1 and less or equal Long.MAX_VALUE. When maximum is reached, startes again at 1.

Returns:
a value between 1 and Long.MAX_VALUE

get

public static java.lang.String get(java.lang.String str)
Get a "unique" ID, which is a combination of a character specified and an incremented number, starting at 1 and less or equal Long.MAX_VALUE. When maximum is reached, startes again at 1.

Parameters:
str - a String for more identification
See Also:
get(char)

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com