|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HashMapIfc
This interface abstracts the Persistent HashMap data structure so that it can be mapped to various persistent and transient datastores. It basically uses the JDK1.1.2 java.util.Hashtable to derive the interface but applies to keys and objects that support the PersistentCapableIfc type.
PersistentCapableIfc
,
Serializable
Method Summary | |
---|---|
void |
clear()
Clear the map |
boolean |
containsKey(java.lang.Object key)
Return true if the specified key maps to an element in the map |
boolean |
containsValue(PersistentCapableIfc element)
Test to see whether the map contains the a key for this value |
java.util.Enumeration |
elements()
Return an enumeration of all the elements in the map |
PersistentCapableIfc |
get(java.lang.Object key)
Return the object mapped to this key. |
java.lang.Object |
getMapObject()
Return a refernece to the enclosed map. |
boolean |
isEmpty()
Test for an empty hashmap |
java.util.Enumeration |
keys()
Return the enumeration of all keys in the map |
PersistentCapableIfc |
put(java.lang.Object key,
PersistentCapableIfc element)
Add the key and associated element to the map and return a reference to the object |
PersistentCapableIfc |
remove(java.lang.Object key)
Remove the object mapped to the specified key from the map and return it to the client |
int |
size()
Return the size of the map |
Methods inherited from interface org.exolab.core.foundation.PersistentCapableIfc |
---|
getMinimumObjectSize, getObjectId, getObjectVersion, setMinimumObjectSize |
Method Detail |
---|
int size()
boolean isEmpty()
java.util.Enumeration keys()
java.util.Enumeration elements()
boolean containsValue(PersistentCapableIfc element)
element
- element to test against
boolean containsKey(java.lang.Object key)
key
- key to test against
PersistentCapableIfc get(java.lang.Object key)
key
- key to lookup
PersistentCapableIfc put(java.lang.Object key, PersistentCapableIfc element)
key
- key to mapelement
- corresponding element
PersistentCapableIfc remove(java.lang.Object key)
key
- key to removePersistentCapableIfc
- coreesponding elementvoid clear()
java.lang.Object getMapObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |