com.iwombat.foundation
Class IdentifierFactory

java.lang.Object
  extended by com.iwombat.foundation.IdentifierFactory

public final class IdentifierFactory
extends java.lang.Object

Class responsible for creating unique identifiers.


Method Summary
static Identifier createUniqueIdentifier()
           
static Identifier createUniqueIdentifier(byte[] byteArray)
          Creates a new identifier from an existing (persisted) byte-array representation
static Identifier createUniqueIdentifier(java.lang.String hexString)
          Creates Identifier from hex String representation of an existing Identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createUniqueIdentifier

public static Identifier createUniqueIdentifier()
Returns:
a new unique identifer.

createUniqueIdentifier

public static Identifier createUniqueIdentifier(byte[] byteArray)
Creates a new identifier from an existing (persisted) byte-array representation

Parameters:
byteArray - persisted byte-array representation of an Identifier.
Returns:
new Identifier from the existing byte-array representation

createUniqueIdentifier

public static Identifier createUniqueIdentifier(java.lang.String hexString)
Creates Identifier from hex String representation of an existing Identifier

Parameters:
hexString - The String version of an existing Identifier.
Returns:
New Identifier from the existing hex String representation