org.ozoneDB.collections
Interface OzoneList

All Superinterfaces:
java.util.Collection, java.util.List, OzoneCollection, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote
All Known Subinterfaces:
_BaseList_SubList, BaseList, FullLinkedList, OzoneArrayList, OzoneLinkedList, OzoneStack
All Known Implementing Classes:
_BaseList_RandomAccessSubListImpl, _BaseList_SubListImpl, AbstractOzoneList, BaseListImpl, FullLinkedListImpl

public interface OzoneList
extends OzoneCollection, java.util.List

See the overall description on OzoneCollection.

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

Method Summary
 void add(int index, java.lang.Object element)
           
 boolean addAll(int index, java.util.Collection c)
           
 java.util.List getClientList()
          Returns a List that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneList.
 java.lang.Object remove(int index)
           
 java.lang.Object set(int index, java.lang.Object element)
           
 
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

add

public void add(int index,
                java.lang.Object element)
Specified by:
add in interface java.util.List

addAll

public boolean addAll(int index,
                      java.util.Collection c)
Specified by:
addAll in interface java.util.List

set

public java.lang.Object set(int index,
                            java.lang.Object element)
Specified by:
set in interface java.util.List

remove

public java.lang.Object remove(int index)
Specified by:
remove in interface java.util.List

getClientList

public java.util.List getClientList()

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

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