1 // You can redistribute this software and/or modify it under the terms of 2 // the Ozone Library License version 1 published by ozone-db.org. 3 // 4 // This file is 5 // Copyright (C) 2002-@year@ Leo Mekenkamp. All rights reserved. 6 // $Id: OzoneTreeSet.java,v 1.1 2002/10/24 15:41:16 per_nyfelt Exp $ 7 8 package org.ozoneDB.collections; 9 10 import java.util.TreeSet; 11 12 /** 13 * See the overall description on {@link org.ozoneDB.collections.OzoneCollection}. 14 * @author <a HREF="mailto:ozoneATmekenkampD0Tcom">Leo Mekenkamp (mind the anti-sp@m)</a> 15 */ 16 public interface OzoneTreeSet extends OzoneSortedSet { 17 18 /** 19 * <p>Returns a <code>TreeSet</code> that contains the same entries as this 20 * persistent one; it is (by nature of the client-server enviromnent) always 21 * a 'deep' copy of this <code>OzoneTreeSet</code>. I.e. the contents of 22 * this <code>OzoneTreeSet</code> instance are always copied to the client 23 * by use of serialization.</p> 24 * <p>Note that the difference of calling <code>iterator()</code> 25 * compared to <code>getClientTreeSet().iterator()</code> is that in 26 * the first case you go through the real collection on the server and in 27 * the second case you go through a local copy on the client side.</p> 28 */ 29 public TreeSet getClientTreeSet(); 30 31 } 32