public class UniqueKeyGenerator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
UniqueKeyGenerator.Factory<E>
A factory for an abstract storage used in
#createElementWithUniqueName method. |
Constructor and Description |
---|
UniqueKeyGenerator() |
Modifier and Type | Method and Description |
---|---|
static <E> E |
createUniqueKey(java.lang.String proposedKey,
int tryLimit,
UniqueKeyGenerator.Factory<E> factory)
A general purpose algorithm that creates a unique key in an abstract storage and returns
a corresponding element (of type E).
|
public static <E> E createUniqueKey(java.lang.String proposedKey, int tryLimit, UniqueKeyGenerator.Factory<E> factory)
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.