org.ozoneDB.collections
Interface OzoneMap

All Superinterfaces:
java.util.Map, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote
All Known Subinterfaces:
_BaseTreeMap_SubMap, BaseTreeMap, FullTreeMap, NodeTreeMap, OzoneHashMap, OzoneIdentityHashMap, OzoneLinkedHashMap, OzoneSortedMap, OzoneTreeMap, OzoneWeakHashMap
All Known Implementing Classes:
_BaseTreeMap_SubMapImpl, _BaseTreeMap_SubMapImpl_Proxy, AbstractOzoneMap, BaseTreeMapImpl, FullTreeMapImpl, FullTreeMapImpl_Proxy, NodeTreeMapImpl, NodeTreeMapImpl_Proxy

public interface OzoneMap
extends java.util.Map, org.ozoneDB.OzoneRemote

See the overall description on OzoneCollection.
Although a Map is technically not a Collection, there are enough similarities to justify placing the OzoneMap and its derived classes and interfaces into the org.ozoneDB.collections package.

Author:
Leo Mekenkamp (mind the anti-sp@m)

Nested Class Summary
static interface OzoneMap.Node
           
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Method Summary
 void clear()
           
 java.util.Map getClientMap()
          Returns a Map that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneMap.
 OzoneSet ozoneEntrySet()
          Basically nothing more than a typecasted call to entrySet(), as an entry set is an ozone objects ifself.
 OzoneSet ozoneKeySet()
          Basically nothing more than a typecasted call to keySet(), as key sets are ozone objects themselves.
 OzoneCollection ozoneValues()
          Basically nothing more than a typecasted call to values(), as the values collection is am ozone object itself.
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void putAll(java.util.Map map)
           
 java.lang.Object remove(java.lang.Object key)
           
 
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, values
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 

Method Detail

clear

public void clear()
Specified by:
clear in interface java.util.Map

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map

putAll

public void putAll(java.util.Map map)
Specified by:
putAll in interface java.util.Map

remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map

getClientMap

public java.util.Map getClientMap()

Returns a Map that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneMap. I.e. the contents of this OzoneMap instance are always copied to the client by use of serialization.


ozoneKeySet

public OzoneSet ozoneKeySet()
Basically nothing more than a typecasted call to keySet(), as key sets are ozone objects themselves.

Returns:
OzoneSet containing all keys in this map

ozoneEntrySet

public OzoneSet ozoneEntrySet()
Basically nothing more than a typecasted call to entrySet(), as an entry set is an ozone objects ifself.

Returns:
OzoneSet containing all keys in this map

ozoneValues

public OzoneCollection ozoneValues()
Basically nothing more than a typecasted call to values(), as the values collection is am ozone object itself.

Returns:
OzoneSet containing all keys in this map


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.