T
- the type of objects that shall be identifiedpublic class Identifiers<T> extends IdentifiersBase<T>
ids, objects
Constructor and Description |
---|
Identifiers(Class<T> clazz,
boolean useEquals)
Creates Identifiers with type name prefix
|
Identifiers(String prefix,
boolean useEquals)
Creates Identifiers with the given prefix
|
Identifiers(String prefix,
boolean useEquals,
int startCounter)
Creates Identifiers with the given prefix
|
Modifier and Type | Method and Description |
---|---|
String |
getId(T object)
Get the id of the given object.
|
String |
getPrefix() |
protected void |
onInsertion(int num,
String id,
T object) |
fetchId, getIds, getObject, getObjects, putObjectIdentifier
public Identifiers(Class<T> clazz, boolean useEquals)
clazz
- the object typeuseEquals
- if the objects shall be compared using equals instead of
the == operatorpublic Identifiers(String prefix, boolean useEquals)
prefix
- the identifier prefixuseEquals
- if the objects shall be compared using equals instead of
the == operatorpublic Identifiers(String prefix, boolean useEquals, int startCounter)
prefix
- the identifier prefixuseEquals
- if the objects shall be compared using equals instead of
the == operatorstartCounter
- number given to first identifierBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a