org.eclipse.net4j.util
Class UUIDGenerator

java.lang.Object
  extended by org.eclipse.net4j.util.UUIDGenerator

public final class UUIDGenerator
extends Object

Generates 16 byte UUID values and can encode them to Strings, decode from Strings respectively.

Since:
3.2

Field Summary
static UUIDGenerator DEFAULT
           
static int NODE_ADDRESS_BYTES
           
 
Constructor Summary
UUIDGenerator()
           
UUIDGenerator(byte[] nodeAddress)
           
 
Method Summary
 byte[] decode(String string)
           
 String encode(byte[] uuid)
           
 String generate()
           
 void generate(byte[] uuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_ADDRESS_BYTES

public static final int NODE_ADDRESS_BYTES
See Also:
Constant Field Values

DEFAULT

public static final UUIDGenerator DEFAULT
Constructor Detail

UUIDGenerator

public UUIDGenerator(byte[] nodeAddress)

UUIDGenerator

public UUIDGenerator()
Method Detail

generate

public String generate()

generate

public void generate(byte[] uuid)

encode

public String encode(byte[] uuid)

decode

public byte[] decode(String string)


Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.