com.fasterxml.uuid
Class StringArgGenerator

java.lang.Object
  extended by com.fasterxml.uuid.UUIDGenerator
      extended by 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

Constructor Summary
StringArgGenerator()
           
 
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 com.fasterxml.uuid.UUIDGenerator
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringArgGenerator

public StringArgGenerator()
Method Detail

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.