org.ozoneDB.collections
Interface OzoneSortedSet

All Superinterfaces:
java.util.Collection, OzoneCollection, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote, OzoneSet, java.util.Set, java.util.SortedSet
All Known Subinterfaces:
BaseTreeSet, FullTreeSet, NodeTreeSet, OzoneTreeSet
All Known Implementing Classes:
BaseTreeSetImpl, FullTreeSetImpl, FullTreeSetImpl_Proxy, NodeTreeSetImpl, NodeTreeSetImpl_Proxy

public interface OzoneSortedSet
extends OzoneSet, java.util.SortedSet

See the overall description on OzoneCollection.

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

Method Summary
 java.util.SortedSet getClientSortedSet()
          Returns a SortedSet that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneSortedSet.
 OzoneSortedSet ozoneHeadSet(java.lang.Object toElement)
          Basically nothing more than a typecasted HeadSet method.
 OzoneSortedSet ozoneSubSet(java.lang.Object fromElement, java.lang.Object toElement)
          Basically nothing more than a typecasted SubSet method.
 OzoneSortedSet ozoneTailSet(java.lang.Object toElement)
          Basically nothing more than a typecasted TailSet method.
 
Methods inherited from interface org.ozoneDB.collections.OzoneSet
getClientSet
 
Methods inherited from interface org.ozoneDB.collections.OzoneCollection
_org_ozoneDB_internalIterator, add, addAll, clear, getClientCollection, remove, removeAll, retainAll
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, iterator, size, toArray, toArray
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.SortedSet
comparator, first, headSet, last, subSet, tailSet
 

Method Detail

getClientSortedSet

public java.util.SortedSet getClientSortedSet()

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

Note that the difference of calling iterator() compared to getClientSortedSet().iterator() is that in the first case you go through the real collection on the server and in the second case you go through a local copy on the client side.


ozoneHeadSet

public OzoneSortedSet ozoneHeadSet(java.lang.Object toElement)

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


ozoneSubSet

public OzoneSortedSet ozoneSubSet(java.lang.Object fromElement,
                                  java.lang.Object toElement)

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


ozoneTailSet

public OzoneSortedSet ozoneTailSet(java.lang.Object toElement)

Basically nothing more than a typecasted TailSet method.

Because subsets are also OzoneSortedSets, 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.