com.fasterxml.uuid
Class StringArgGenerator
java.lang.Object
com.fasterxml.uuid.UUIDGenerator
com.fasterxml.uuid.StringArgGenerator
- Direct Known Subclasses:
- NameBasedGenerator
public abstract class StringArgGenerator
- extends UUIDGenerator
Intermediate base class for UUID generators that take one String argument for individual
calls. This includes name-based generators, but not random and time-based generators.
- Since:
- 3.0
Method Summary |
abstract UUID |
generate(byte[] nameBytes)
Method for generating name-based UUIDs using specified byte-serialization
of name. |
abstract UUID |
generate(String name)
Method for generating name-based UUIDs using specified name (serialized to
bytes using UTF-8 encoding) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringArgGenerator
public StringArgGenerator()
generate
public abstract UUID generate(String name)
- Method for generating name-based UUIDs using specified name (serialized to
bytes using UTF-8 encoding)
generate
public abstract UUID generate(byte[] nameBytes)
- Method for generating name-based UUIDs using specified byte-serialization
of name.
- Since:
- 3.1
Copyright © 2011 FasterXML.com. All Rights Reserved.