public class LazyHashMap
extends Object
implements Map
Modifier and Type | Field and Description |
---|---|
private LazyDocument |
doc |
private DiskHashReader |
reader |
Constructor and Description |
---|
LazyHashMap(LazyDocument doc,
DiskHashReader reader)
Construct a hash map to read keys from a
DiskHashReader |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set |
entrySet() |
Object |
get(Object key)
Get the list of nodes associated with a given key.
|
boolean |
isEmpty() |
Set |
keySet() |
Object |
put(Object key,
Object value) |
void |
putAll(Map t) |
Object |
remove(Object key) |
int |
size() |
Collection |
values() |
private LazyDocument doc
private DiskHashReader reader
public LazyHashMap(LazyDocument doc, DiskHashReader reader)
DiskHashReader
public Object get(Object key)
get
in interface Map
public void clear()
clear
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Set entrySet()
entrySet
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public Set keySet()
keySet
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public void putAll(Map t)
putAll
in interface Map
public Object remove(Object key)
remove
in interface Map
public int size()
size
in interface Map
public Collection values()
values
in interface Map