|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.axiom.document.ref.DefaultDocumentIterator
A wrapper around a iterator or collection which supports a close.
Field Summary | |
protected java.util.Collection |
collection
The wrapped collection. |
protected java.util.Iterator |
iterator
The wrapped iterator. |
Constructor Summary | |
DefaultDocumentIterator(java.util.Collection collection)
Constructor from an collection. |
|
DefaultDocumentIterator(java.util.Collection collection,
java.util.Iterator iterator)
Constructor from a collection and iterator. |
|
DefaultDocumentIterator(java.util.Iterator iterator)
Constructor from an iterator. |
Method Summary | |
void |
close()
Close this iterator. |
boolean |
hasNext()
Tell if there is another item in the iteration. |
java.lang.Object |
next()
Get the next item in the iteration. |
void |
remove()
Remove the last returned object from the iterator's collection. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.util.Collection collection
This will be cleared upon a close().
protected java.util.Iterator iterator
Constructor Detail |
public DefaultDocumentIterator(java.util.Collection collection, java.util.Iterator iterator)
collection
- the underlying collection.iterator
- the collection's iterator.public DefaultDocumentIterator(java.util.Collection collection)
collection
- the underlying collection.public DefaultDocumentIterator(java.util.Iterator iterator)
iterator
- the iterator to use.Method Detail |
public boolean hasNext()
public java.lang.Object next()
public void remove()
public void close()
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |