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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate E
Last object retrievedprivate final Collection
<E> Object we iterate on -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
OrderedSetIterator
(ListIterator<E> iterator, Collection<E> set) -
Method Summary
Methods inherited from class org.apache.commons.collections4.iterators.AbstractUntypedIteratorDecorator
getIterator, hasNext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.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
public void remove() -
hasPrevious
public boolean hasPrevious()Description copied from interface:OrderedIterator
Checks to see if there is a previous element that can be iterated to.- Specified by:
hasPrevious
in interfaceOrderedIterator<E>
- Returns:
true
if the iterator has a previous element
-
previous
Description copied from interface:OrderedIterator
Gets the previous element from the container.- Specified by:
previous
in interfaceOrderedIterator<E>
- Returns:
- the previous element in the iteration
-