org.ozoneDB.collections
Class _BaseTreeMap_SubMap_entrySet

java.lang.Object
  extended byorg.ozoneDB.OzoneObject
      extended byorg.ozoneDB.collections.AbstractOzoneCollection
          extended byorg.ozoneDB.collections.AbstractOzoneSet
              extended byorg.ozoneDB.collections._BaseTreeMap_SubMap_entrySet
All Implemented Interfaces:
java.util.Collection, OzoneCollection, org.ozoneDB.OzoneCompatible, org.ozoneDB.OzoneCompatibleOrProxy, org.ozoneDB.OzoneRemote, OzoneSet, java.io.Serializable, java.util.Set

public class _BaseTreeMap_SubMap_entrySet
extends AbstractOzoneSet
implements OzoneSet

DO NOT USE THIS CLASS DIRECTLY.

This should be an anonymous inner class; ozone will probably never support these as being seperate ozone objects, so we have to resort to this hack.

See Also:
Serialized Form

Constructor Summary
_BaseTreeMap_SubMap_entrySet(_BaseTreeMap_SubMap owner)
          Creates a new instance of BaseTreeMap_SubMap_entrySet
 
Method Summary
 java.util.Iterator _org_ozoneDB_internalIterator()
           
 void clear()
          Remove all elements from the collection (optional operation).
 boolean contains(java.lang.Object o)
          Test whether this collection contains a given object.
 java.util.Iterator iterator()
          Return an Iterator over this collection.
 boolean remove(java.lang.Object o)
          Remove a single instance of an object from this collection (optional operation).
 int size()
          Return the number of elements in this collection.
 
Methods inherited from class org.ozoneDB.collections.AbstractOzoneSet
equals, getClientSet, hashCode, removeAll
 
Methods inherited from class org.ozoneDB.collections.AbstractOzoneCollection
add, addAll, containsAll, getClientCollection, isEmpty, retainAll, toArray, toArray, toString
 
Methods inherited from class org.ozoneDB.OzoneObject
container, database, deleteRecursive, getHandle, getObjectID, handle, onActivate, onCreate, onDelete, onPassivate, requireWriteLocking, self, setContainer, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ozoneDB.collections.OzoneSet
getClientSet
 
Methods inherited from interface org.ozoneDB.collections.OzoneCollection
add, addAll, getClientCollection, removeAll, retainAll
 
Methods inherited from interface java.util.Collection
containsAll, equals, hashCode, isEmpty, toArray, toArray
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 
Methods inherited from interface java.util.Set
add, addAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

_BaseTreeMap_SubMap_entrySet

public _BaseTreeMap_SubMap_entrySet(_BaseTreeMap_SubMap owner)
Creates a new instance of BaseTreeMap_SubMap_entrySet

Method Detail

size

public int size()
Description copied from class: AbstractOzoneCollection
Return the number of elements in this collection. If there are more than Integer.MAX_VALUE elements, return Integer.MAX_VALUE.

Specified by:
size in interface java.util.Collection
Specified by:
size in class AbstractOzoneCollection
Returns:
the size

iterator

public java.util.Iterator iterator()
Description copied from class: AbstractOzoneCollection
Return an Iterator over this collection. The iterator must provide the hasNext and next methods and should in addition provide remove if the collection is modifiable.

Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in class AbstractOzoneCollection
Returns:
an iterator

_org_ozoneDB_internalIterator

public java.util.Iterator _org_ozoneDB_internalIterator()
Specified by:
_org_ozoneDB_internalIterator in interface OzoneCollection

clear

public void clear()
Description copied from class: AbstractOzoneCollection
Remove all elements from the collection (optional operation). This implementation obtains an iterator over the collection and calls next and remove on it repeatedly (thus this method will fail with an UnsupportedOperationException if the Iterator's remove method does) until there are no more elements to remove. Many implementations will have a faster way of doing this.

Specified by:
clear in interface OzoneCollection
Overrides:
clear in class AbstractOzoneCollection
See Also:
Iterator.remove()

contains

public boolean contains(java.lang.Object o)
Description copied from class: AbstractOzoneCollection
Test whether this collection contains a given object. That is, if the collection has an element e such that (o == null ? e == null : o.equals(e)). This implementation obtains an iterator over the collection and iterates over it, testing each element for equality with the given object. If it is equal, true is returned. Otherwise false is returned when the end of the collection is reached.

Specified by:
contains in interface java.util.Collection
Overrides:
contains in class AbstractOzoneCollection
Parameters:
o - the object to remove from this collection
Returns:
true if this collection contains an object equal to o

remove

public boolean remove(java.lang.Object o)
Description copied from class: AbstractOzoneCollection
Remove a single instance of an object from this collection (optional operation). That is, remove one element e such that (o == null ? e == null : o.equals(e)), if such an element exists. This implementation obtains an iterator over the collection and iterates over it, testing each element for equality with the given object. If it is equal, it is removed by the iterator's remove method (thus this method will fail with an UnsupportedOperationException if the Iterator's remove method does). After the first element has been removed, true is returned; if the end of the collection is reached, false is returned.

Specified by:
remove in interface OzoneCollection
Overrides:
remove in class AbstractOzoneCollection
Parameters:
o - the object to remove from this collection
Returns:
true if the remove operation caused the Collection to change, or equivalently if the collection did contain o.
See Also:
Iterator.remove()


Copyright © 2004 The Ozone Database Project - www.ozone-db.org. All Rights Reserved.