org.eclipse.net4j.util
Class UUIDGenerator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NODE_ADDRESS_BYTES
public static final int NODE_ADDRESS_BYTES
- See Also:
- Constant Field Values
DEFAULT
public static final UUIDGenerator DEFAULT
UUIDGenerator
public UUIDGenerator(byte[] nodeAddress)
UUIDGenerator
public UUIDGenerator()
generate
public String generate()
generate
public void generate(byte[] uuid)
encode
public String encode(byte[] uuid)
decode
public byte[] decode(String string)
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.