mail
Class Store<K extends ID,V>
java.lang.Object
java.util.AbstractMap<K,V>
mail.Store<K,V>
- All Implemented Interfaces:
- java.util.Map<K,V>
- Direct Known Subclasses:
- MailStore, NameStore
public abstract class Store<K extends ID,V>
- extends java.util.AbstractMap<K,V>
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Field Summary |
protected java.io.File |
basedir
|
private java.util.Properties |
content
|
private static java.lang.String |
LIST_FILE
|
Constructor Summary |
Store(java.io.File basedir)
|
Method Summary |
protected abstract V |
clearV(java.lang.String s)
|
boolean |
containsKey(java.lang.Object key)
|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
|
V |
get(java.lang.Object o)
|
protected abstract V |
load(java.lang.String s)
|
protected abstract K |
loadKey(java.lang.String s)
|
V |
put(K key,
V value)
|
V |
remove(java.lang.Object o)
|
protected abstract java.lang.String |
set(V value)
|
private void |
storeContent()
|
Methods inherited from class java.util.AbstractMap |
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
LIST_FILE
private static final java.lang.String LIST_FILE
- See Also:
- Constant Field Values
basedir
protected java.io.File basedir
content
private java.util.Properties content
Store
public Store(java.io.File basedir)
throws LoadingException
- Throws:
LoadingException
load
protected abstract V load(java.lang.String s)
set
protected abstract java.lang.String set(V value)
loadKey
protected abstract K loadKey(java.lang.String s)
clearV
protected abstract V clearV(java.lang.String s)
entrySet
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
- Specified by:
entrySet
in interface java.util.Map<K extends ID,V>
- Specified by:
entrySet
in class java.util.AbstractMap<K extends ID,V>
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interface java.util.Map<K extends ID,V>
- Overrides:
containsKey
in class java.util.AbstractMap<K extends ID,V>
storeContent
private void storeContent()
throws SavingException
- Throws:
SavingException
put
public V put(K key,
V value)
- Specified by:
put
in interface java.util.Map<K extends ID,V>
- Overrides:
put
in class java.util.AbstractMap<K extends ID,V>
get
public V get(java.lang.Object o)
- Specified by:
get
in interface java.util.Map<K extends ID,V>
- Overrides:
get
in class java.util.AbstractMap<K extends ID,V>
remove
public V remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Map<K extends ID,V>
- Overrides:
remove
in class java.util.AbstractMap<K extends ID,V>