KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > collections > OzoneList


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: OzoneList.java,v 1.1 2002/10/24 15:41:16 per_nyfelt Exp $
7

8 package org.ozoneDB.collections;
9
10 import java.util.Collection JavaDoc;
11 import java.util.List JavaDoc;
12
13 /**
14  * See the overall description on {@link org.ozoneDB.collections.OzoneCollection}.
15  * @author <a HREF="mailto:ozoneATmekenkampD0Tcom">Leo Mekenkamp (mind the anti-sp@m)</a>
16  */

17 public interface OzoneList extends OzoneCollection, List JavaDoc {
18     
19     public void add(int index, Object JavaDoc element); /*update*/
20     
21     public boolean addAll(int index, Collection JavaDoc c); /*update*/
22     
23     public Object JavaDoc set(int index, Object JavaDoc element); /*update*/
24     
25     public Object JavaDoc remove(int index); /*update*/
26
27     /**
28      * <p>Returns a <code>List</code> that contains the same entries as this
29      * persistent one; it is (by nature of the client-server enviromnent) always
30      * a 'deep' copy of this <code>OzoneList</code>. I.e. the contents of
31      * this <code>OzoneList</code> instance are always copied to the client
32      * by use of serialization.</p>
33      * <p>Note that the difference of calling <code>iterator()</code>
34      * compared to <code>getClientList().iterator()</code> is that in
35      * the first case you go through the real collection on the server and in
36      * the second case you go through a local copy on the client side.</p>
37      */

38     public List JavaDoc getClientList();
39     
40 }
41
Popular Tags