|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.OzoneObject
org.ozoneDB.collections._BaseTreeMap_OzoneTreeIteratorImpl
DO NOT USE THIS CLASS DIRECTLY.
This should be an inner class; ozone unfortunately does not (yet) support inner classes as Ozone objects. Until it does we have to resort to this hack.
Note that this class resembles _BaseTreeMap_TreeIterator
.
TODO: as soon as Ozone supports server side objects that are not storable, this class has to be rewritten to such a server side non-persistent object.
Constructor Summary | |
_BaseTreeMap_OzoneTreeIteratorImpl(BaseTreeMap owner,
int type)
|
|
_BaseTreeMap_OzoneTreeIteratorImpl(BaseTreeMap owner,
int type,
BaseTreeMap.Node first,
BaseTreeMap.Node max)
|
Method Summary | |
boolean |
hasNext()
Returns true if the Iterator has more elements. |
java.lang.Object |
next()
Returns the next element in the Iterator's sequential view. |
void |
remove()
Removes from the backing TreeMap the last element which was fetched with the next() method. |
Methods inherited from class org.ozoneDB.OzoneObject |
container, database, deleteRecursive, equals, getHandle, getObjectID, handle, hashCode, onActivate, onCreate, onDelete, onPassivate, requireWriteLocking, self, setContainer, toString, toXML |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy |
getObjectID |
Constructor Detail |
public _BaseTreeMap_OzoneTreeIteratorImpl(BaseTreeMap owner, int type)
public _BaseTreeMap_OzoneTreeIteratorImpl(BaseTreeMap owner, int type, BaseTreeMap.Node first, BaseTreeMap.Node max)
Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
java.util.ConcurrentModificationException
- if the TreeMap was modifiedpublic java.lang.Object next()
next
in interface OzoneIterator
java.util.ConcurrentModificationException
- if the TreeMap was modified
java.util.NoSuchElementException
- if there is nonepublic void remove()
next()
method.
remove
in interface OzoneIterator
java.util.ConcurrentModificationException
- if the TreeMap was modified
java.lang.IllegalStateException
- if called when there is no last element
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |