Class LinkedListImpl.Iterator
java.lang.Object
org.apache.activemq.artemis.utils.collections.LinkedListImpl.Iterator
- All Implemented Interfaces:
AutoCloseable,Iterator<E>,LinkedListIterator<E>
- Enclosing class:
- LinkedListImpl<E>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanhasNext()next()voidnudged(LinkedListImpl.Node<E> node) voidremove()This method is doing exactly whatIterator.remove()would do, however it will return the element being removed.voidrepeat()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
repeat
public void repeat()- Specified by:
repeatin interfaceLinkedListIterator<E>
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove() -
removeLastElement
Description copied from interface:LinkedListIteratorThis method is doing exactly whatIterator.remove()would do, however it will return the element being removed.- Specified by:
removeLastElementin interfaceLinkedListIterator<E>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceLinkedListIterator<E>
-
nudged
-