org.ozoneDB.collections
Interface OzoneStack

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

public interface OzoneStack
extends OzoneList

See the overall description on OzoneCollection.

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

Method Summary
 boolean empty()
           
 java.util.Stack getClientStack()
          Returns a Stack that contains the same entries as this persistent one; it is (by nature of the client-server enviromnent) always a 'deep' copy of this OzoneStack.
 java.lang.Object peek()
           
 java.lang.Object pop()
           
 java.lang.Object push(java.lang.Object object)
           
 int search(java.lang.Object object)
           
 
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

empty

public boolean empty()

peek

public java.lang.Object peek()

pop

public java.lang.Object pop()

push

public java.lang.Object push(java.lang.Object object)

search

public int search(java.lang.Object object)

getClientStack

public java.util.Stack getClientStack()

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

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