T - data typepublic interface DataKeyMapper<T> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
T |
get(String key)
Gets the data object identified by given key.
|
boolean |
has(T dataObject)
Check whether this key mapper contains the given data object.
|
String |
key(T dataObject)
Gets the key for data object.
|
void |
refresh(T dataObject)
Updates any existing mappings of given data object.
|
void |
remove(T dataObject)
Removes a data object from the key mapping.
|
void |
removeAll()
Removes all data objects from the key mapping.
|
void |
setIdentifierGetter(ValueProvider<T,Object> identifierGetter)
Takes identifier getter into use and updates existing mappings
|
String key(T dataObject)
dataObject - data object for key mappingboolean has(T dataObject)
dataObject - the data object to checktrue if the given data object is contained in this key
mapper, false otherwiseT get(String key)
key - key of a data objectnull if invalid keyvoid remove(T dataObject)
dataObject - dropped data objectvoid removeAll()
void refresh(T dataObject)
dataObject - the data object to updatevoid setIdentifierGetter(ValueProvider<T,Object> identifierGetter)
identifierGetter - has to return a unique key for every bean, and the returned
key has to follow general hashCode() and
equals() contract, see Object.hashCode() for
details.Copyright © 2025. All rights reserved.