org.ozoneDB.collections
Interface OzoneTreeSet

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

public interface OzoneTreeSet
extends OzoneSortedSet

See the overall description on OzoneCollection.

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

Method Summary
 java.util.TreeSet getClientTreeSet()
          Returns a TreeSet that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneTreeSet.
 
Methods inherited from interface org.ozoneDB.collections.OzoneSortedSet
getClientSortedSet, ozoneHeadSet, ozoneSubSet, ozoneTailSet
 
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

getClientTreeSet

public java.util.TreeSet getClientTreeSet()

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

Note that the difference of calling iterator() compared to getClientTreeSet().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.



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