KEY
- KeyTypeVALUE
- ValueTypepublic abstract class AbstractLazyMap<KEY,VALUE> extends Object implements Map<KEY,VALUE>
Constructor and Description |
---|
AbstractLazyMap() |
AbstractLazyMap(Map<KEY,VALUE> baseMap) |
AbstractLazyMap(Set<KEY> entryKeySet) |
Modifier and Type | Method and Description |
---|---|
void |
addKey(KEY key) |
void |
clear() |
void |
clearCache()
manually clears the cached objects
|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
protected abstract VALUE |
create(Object key)
Creates the Mapped object based on its key.
|
Set<Map.Entry<KEY,VALUE>> |
entrySet() |
VALUE |
get(Object key) |
boolean |
isEmpty() |
Set<KEY> |
keySet() |
VALUE |
put(KEY key,
VALUE value) |
void |
putAll(Map<? extends KEY,? extends VALUE> m) |
VALUE |
remove(Object key) |
void |
setKeySet(Set<KEY> newKeySet) |
int |
size() |
Collection<VALUE> |
values() |
protected abstract VALUE create(Object key)
key
- public void addKey(KEY key)
public void clearCache()
public boolean containsKey(Object key)
containsKey
in interface Map<KEY,VALUE>
public boolean containsValue(Object value)
containsValue
in interface Map<KEY,VALUE>
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.