Klasse AbstractIterator<T>
java.lang.Object
org.eclipse.net4j.util.collection.AbstractIterator<T>
- Alle implementierten Schnittstellen:
Iterator<T>
- Bekannte direkte Unterklassen:
AbstractCloseableIterator,AbstractFilteredIterator,AbstractListIterator,ComposedIterator
An abstract base class for custom iterators that only requires to implement a single
computeNextElement() method.- Seit:
- 3.2
- Autor:
- Eike Stepper
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected static final ObjectThe token to be used incomputeNextElement()to indicate the end of the iteration. -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract ObjectReturns the next iteration element, orEND_OF_DATAif the end of the iteration has been reached.static <T> ListIterator<T> empty()final booleanhasNext()final Tnext()voidremove()Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.Iterator
forEachRemaining
-
Felddetails
-
END_OF_DATA
The token to be used incomputeNextElement()to indicate the end of the iteration.
-
-
Konstruktordetails
-
AbstractIterator
public AbstractIterator()
-
-
Methodendetails
-
hasNext
public final boolean hasNext() -
next
-
remove
public void remove() -
computeNextElement
Returns the next iteration element, orEND_OF_DATAif the end of the iteration has been reached. -
empty
- Seit:
- 3.4
-