Constructor and Description |
---|
StringPrefixIDSource(java.lang.String prefix,
IDSource<?> source) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
nextID()
Implementing classes are responsible for synchronization if concurrent invocations
of this method are required.
|
public StringPrefixIDSource(java.lang.String prefix, IDSource<?> source)
prefix
- A fixed String that is attached to the front of each ID.source
- The source of IDs to which the prefix is added.