-
-
Notifications
You must be signed in to change notification settings - Fork 109
/
Copy pathStringArgGenerator.java
40 lines (35 loc) · 1.25 KB
/
StringArgGenerator.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.fasterxml.uuid;
import java.util.UUID;
/**
* 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
*/
public abstract class StringArgGenerator extends UUIDGenerator
{
/**
* Method for generating name-based UUIDs using specified name (serialized to
* bytes using UTF-8 encoding)
*/
public abstract UUID generate(String name);
/**
* Method for generating name-based UUIDs using specified name (serialized to
* bytes using UTF-8 encoding). No synchronization is performed on digester.
* Digester is assumed to be created with ThreadLocal.
*/
public abstract UUID concurrentGenerate(String name);
/**
* Method for generating name-based UUIDs using specified byte-serialization
* of name.
*
* @since 3.1
*/
public abstract UUID generate(byte[] nameBytes);
/**
* Method for generating name-based UUIDs using specified byte-serialization
* of name. No synchronization is performed on digester. Digester is assumed
* to be created with ThreadLocal.
*/
public abstract UUID concurrentGenerate(byte[] nameBytes);
}