|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.common.collect.AbstractIterator<T>
com.google.common.collect.AbstractRemovableIterator<T>
public abstract class AbstractRemovableIterator<T>
A specialization of AbstractIterator for data sources which can
handle arbitrary removal by element, concurrently with iteration. Subclasses
must implement both the AbstractIterator.computeNext() and remove(Object) methods.
| Constructor Summary | |
|---|---|
AbstractRemovableIterator()
|
|
| Method Summary | |
|---|---|
T |
next()
|
void |
remove()
Removes from the underlying collection the last element returned by the iterator. |
protected abstract void |
remove(T element)
Removes element from the backing data source. |
| Methods inherited from class com.google.common.collect.AbstractIterator |
|---|
computeNext, endOfData, hasNext, peek |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRemovableIterator()
| Method Detail |
|---|
protected abstract void remove(T element)
element from the backing data source.
public T next()
next in interface java.util.Iterator<T>next in class AbstractIterator<T>public void remove()
remove in interface java.util.Iterator<T>remove in class AbstractIterator<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||