T
- the type of objects that shall be identifiedpublic class CustomIdentifiers<T> extends Identifiers<T>
getId(Object, String)
.ids, objects
Constructor and Description |
---|
CustomIdentifiers(Class<T> clazz,
boolean useEquals) |
CustomIdentifiers(String prefix,
boolean useEquals) |
CustomIdentifiers(String prefix,
boolean useEquals,
int startCounter) |
Modifier and Type | Method and Description |
---|---|
String |
getId(T object,
String desiredId)
Get the identifier for the given object.
|
protected boolean |
isReserved(String id)
Determines if a given ID is reserved and may not be used.
|
getId, getPrefix, onInsertion
fetchId, getIds, getObject, getObjects, putObjectIdentifier
public CustomIdentifiers(String prefix, boolean useEquals, int startCounter)
public CustomIdentifiers(String prefix, boolean useEquals)
public String getId(T object, String desiredId)
object
- the object to identifydesiredId
- the desired identifierprotected boolean isReserved(String id)
id
- the ID to testBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a