Class ListOrderedSet.OrderedSetIterator<E>
java.lang.Object
org.apache.commons.collections4.iterators.AbstractUntypedIteratorDecorator<E,E>
org.apache.commons.collections4.iterators.AbstractIteratorDecorator<E>
org.apache.commons.collections4.set.ListOrderedSet.OrderedSetIterator<E>
- All Implemented Interfaces:
Iterator<E>, OrderedIterator<E>
- Enclosing class:
ListOrderedSet<E>
static class ListOrderedSet.OrderedSetIterator<E>
extends AbstractIteratorDecorator<E>
implements OrderedIterator<E>
Internal iterator handle remove.
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ELast object retrievedprivate final Collection<E> Object we iterate on -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateOrderedSetIterator(ListIterator<E> iterator, Collection<E> set) -
Method Summary
Methods inherited from class AbstractUntypedIteratorDecorator
getIterator, hasNextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, hasNext
-
Field Details
-
set
Object we iterate on -
last
Last object retrieved
-
-
Constructor Details
-
OrderedSetIterator
-
-
Method Details
-
next
Description copied from class:AbstractIteratorDecorator -
remove
-
hasPrevious
public boolean hasPrevious()Description copied from interface:OrderedIteratorChecks to see if there is a previous element that can be iterated to.- Specified by:
hasPreviousin interfaceOrderedIterator<E>- Returns:
trueif the iterator has a previous element
-
previous
Description copied from interface:OrderedIteratorGets the previous element from the container.- Specified by:
previousin interfaceOrderedIterator<E>- Returns:
- the previous element in the iteration
-