KickJava   Java API By Example, From Geeks To Geeks.

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


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

8 package org.ozoneDB.collections;
9
10 import java.util.LinkedList JavaDoc;
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 OzoneLinkedList extends OzoneList {
17     
18     public Object JavaDoc getFirst();
19     
20     public Object JavaDoc getLast();
21     
22     public Object JavaDoc removeFirst(); /*update*/
23     
24     public Object JavaDoc removeLast(); /*update*/
25
26     public void addFirst(Object JavaDoc object); /*update*/
27     
28     public void addLast(Object JavaDoc object); /*update*/
29     
30     /**
31      * <p>Returns a <code>LinkedList</code> that contains the same entries as this
32      * persistent one; it is (by nature of the client-server enviromnent) always
33      * a 'deep' copy of this <code>OzoneLinkedList</code>. I.e. the contents of
34      * this <code>OzoneLinkedList</code> instance are always copied to the client
35      * by use of serialization.</p>
36      * <p>Note that the difference of calling <code>iterator()</code>
37      * compared to <code>getClientLinkedList().iterator()</code> is that in
38      * the first case you go through the real collection on the server and in
39      * the second case you go through a local copy on the client side.</p>
40      */

41     public LinkedList JavaDoc getClientLinkedList();
42
43 }
44
Popular Tags