org.ozoneDB.collections
Interface OzoneSortedMap

All Superinterfaces:
java.util.Map, org.ozoneDB.OzoneCompatibleOrProxy, OzoneMap, org.ozoneDB.OzoneRemote, java.util.SortedMap
All Known Subinterfaces:
_BaseTreeMap_SubMap, BaseTreeMap, FullTreeMap, NodeTreeMap, OzoneTreeMap
All Known Implementing Classes:
_BaseTreeMap_SubMapImpl, _BaseTreeMap_SubMapImpl_Proxy, BaseTreeMapImpl, FullTreeMapImpl, FullTreeMapImpl_Proxy, NodeTreeMapImpl, NodeTreeMapImpl_Proxy

public interface OzoneSortedMap
extends OzoneMap, java.util.SortedMap

See the overall description on OzoneCollection.

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

Nested Class Summary
 
Nested classes inherited from class org.ozoneDB.collections.OzoneMap
OzoneMap.Node
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Method Summary
 java.util.SortedMap getClientSortedMap()
          Returns a SortedMap that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneSortedMap.
 OzoneSortedMap ozoneHeadMap(java.lang.Object toKey)
          Basically nothing more than a typecasted HeadMap method.
 OzoneSortedMap ozoneSubMap(java.lang.Object fromKey, java.lang.Object toKey)
          Basically nothing more than a typecasted SubMap method.
 OzoneSortedMap ozoneTailMap(java.lang.Object toKey)
          Basically nothing more than a typecasted TailMap method.
 
Methods inherited from interface org.ozoneDB.collections.OzoneMap
clear, getClientMap, ozoneEntrySet, ozoneKeySet, ozoneValues, put, putAll, remove
 
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
 
Methods inherited from interface java.util.SortedMap
comparator, firstKey, headMap, lastKey, subMap, tailMap
 

Method Detail

getClientSortedMap

public java.util.SortedMap getClientSortedMap()

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


ozoneHeadMap

public OzoneSortedMap ozoneHeadMap(java.lang.Object toKey)

Basically nothing more than a typecasted HeadMap method. Because subsets are also OzoneSortedMaps, this method is provided to do away with the need for a typecast.


ozoneSubMap

public OzoneSortedMap ozoneSubMap(java.lang.Object fromKey,
                                  java.lang.Object toKey)

Basically nothing more than a typecasted SubMap method. Because subsets are also OzoneSortedMaps, this method is provided to do away with the need for a typecast.


ozoneTailMap

public OzoneSortedMap ozoneTailMap(java.lang.Object toKey)

Basically nothing more than a typecasted TailMap method.

Because subsets are also OzoneSortedMaps, this method is provided to do away with the need for a typecast.



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