OBJECT - Type of instancesKEY - Type of groupspublic interface GroupedListCache<KEY,OBJECT>
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<KEY> keys,
OBJECT object)
Add an object with many keys to the cache
|
void |
add(KEY key,
Collection<OBJECT> objects)
Add an collection of objects with the same key to the cache
|
void |
add(KEY key,
OBJECT object)
Add an object with a key to the cache
|
GroupedDataset<KEY,ListDataset<OBJECT>,OBJECT> |
getDataset() |
void |
reset()
Reset the cache
|
void add(Collection<KEY> keys, OBJECT object)
keys - the instance's keysobject - the instancevoid add(KEY key, OBJECT object)
key - the instance's keyobject - the instancevoid add(KEY key, Collection<OBJECT> objects)
key - the instance's keyobjects - the instancesGroupedDataset<KEY,ListDataset<OBJECT>,OBJECT> getDataset()
void reset()