org.tm4j.topicmap.utils .IDGeneratorImpl

Description

The default IDGenerator implementation. This implementation returns a two-part, pseudo-unique ID. The first part of the ID is the time (in milliseconds) of the creation of the object, encoded as a base 30 string. The second part of the ID is a simple incrementing counter. This class does not generate truely unique IDs, but the degree of uniqueness should be sufficient for most applications.

Inheritance Hierarchy

Interfaces

Field Summary
baseID
counter
Method Summary
java.lang.String getID()
Returns a pseudo-unique identifier as a concatenation of the base identifier created in the object constructor followed by a dash (-) and then a simple, incrementing counter value (encoded in hexadecimal).

Related Topics

Imports