org.ozoneDB.collections
Class _BaseTreeMap_SubMap_values

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

public class _BaseTreeMap_SubMap_values
extends AbstractOzoneCollection
implements OzoneCollection

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_values(_BaseTreeMap_SubMap owner)
          Creates a new instance of BaseTreeMap_SubMap_values
 
Method Summary
 java.util.Iterator _org_ozoneDB_internalIterator()
           
 void clear()
          Remove all elements from the collection (optional operation).
 java.util.Iterator iterator()
          Return an Iterator over this collection.
 int size()
          Return the number of elements in this collection.
 
Methods inherited from class org.ozoneDB.collections.AbstractOzoneCollection
add, addAll, contains, containsAll, getClientCollection, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class org.ozoneDB.OzoneObject
container, database, deleteRecursive, equals, getHandle, getObjectID, handle, hashCode, 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.OzoneCollection
add, addAll, getClientCollection, remove, removeAll, retainAll
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, toArray, toArray
 
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy
getObjectID
 

Constructor Detail

_BaseTreeMap_SubMap_values

public _BaseTreeMap_SubMap_values(_BaseTreeMap_SubMap owner)
Creates a new instance of BaseTreeMap_SubMap_values

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()


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