org.ozoneDB.collections
Interface OzoneLinkedList

All Superinterfaces:
java.util.Collection, java.util.List, OzoneCollection, org.ozoneDB.OzoneCompatibleOrProxy, OzoneList, org.ozoneDB.OzoneRemote

public interface OzoneLinkedList
extends OzoneList

See the overall description on OzoneCollection.

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

Method Summary
 void addFirst(java.lang.Object object)
           
 void addLast(java.lang.Object object)
           
 java.util.LinkedList getClientLinkedList()
          Returns a LinkedList that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneLinkedList.
 java.lang.Object getFirst()
           
 java.lang.Object getLast()
           
 java.lang.Object removeFirst()
           
 java.lang.Object removeLast()
           
 
Methods inherited from interface org.ozoneDB.collections.OzoneList
add, addAll, getClientList, remove, set
 
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.List
add, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, size, subList, toArray, toArray
 

Method Detail

getFirst

public java.lang.Object getFirst()

getLast

public java.lang.Object getLast()

removeFirst

public java.lang.Object removeFirst()

removeLast

public java.lang.Object removeLast()

addFirst

public void addFirst(java.lang.Object object)

addLast

public void addLast(java.lang.Object object)

getClientLinkedList

public java.util.LinkedList getClientLinkedList()

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

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