public abstract class AbstractDiskMap<K,V> extends AbstractMap<K,V> implements Erasable
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
AbstractDiskMap(File path,
boolean useGZip) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
void |
erase() |
V |
get(Object key) |
File |
getPath() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
abstract V |
readValue(InputStream is) |
V |
remove(Object key) |
void |
setPath(File path) |
int |
size() |
abstract void |
writeValue(OutputStream os,
V value) |
beforeReadObject, beforeWriteObject, containsValue, entrySet, get, getAsString, isEmpty, putAll, toString, valuesclone, equals, hashCodepublic AbstractDiskMap(File path, boolean useGZip) throws IOException
IOExceptionpublic final File getPath()
public final int size()
public final boolean containsKey(Object key)
containsKey in interface Map<K,V>containsKey in class AbstractMap<K,V>public final void clear()
public final void erase()
throws IOException
erase in interface ErasableIOExceptionpublic final void setPath(File path)
public abstract void writeValue(OutputStream os, V value)
public abstract V readValue(InputStream is)
Copyright © 2015 Universal Java Matrix Package. All rights reserved.