OBJECT
- Type of instancesKEY
- Type of groupspublic class InMemoryGroupedListCache<KEY,OBJECT> extends Object implements GroupedListCache<KEY,OBJECT>
GroupedListCache
Constructor and Description |
---|
InMemoryGroupedListCache() |
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
|
public InMemoryGroupedListCache()
public void add(Collection<KEY> keys, OBJECT object)
GroupedListCache
add
in interface GroupedListCache<KEY,OBJECT>
keys
- the instance's keysobject
- the instancepublic void add(KEY key, OBJECT object)
GroupedListCache
add
in interface GroupedListCache<KEY,OBJECT>
key
- the instance's keyobject
- the instancepublic void add(KEY key, Collection<OBJECT> objects)
GroupedListCache
add
in interface GroupedListCache<KEY,OBJECT>
key
- the instance's keyobjects
- the instancespublic GroupedDataset<KEY,ListDataset<OBJECT>,OBJECT> getDataset()
getDataset
in interface GroupedListCache<KEY,OBJECT>
public void reset()
GroupedListCache
reset
in interface GroupedListCache<KEY,OBJECT>