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:
java.util.Iterator<E>
,OrderedIterator<E>
- Enclosing class:
- ListOrderedSet<E>
static class ListOrderedSet.OrderedSetIterator<E> extends AbstractIteratorDecorator<E> implements OrderedIterator<E>
Internal iterator handle remove.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
OrderedSetIterator(java.util.ListIterator<E> iterator, java.util.Collection<E> set)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasPrevious()
Checks to see if there is a previous element that can be iterated to.E
next()
E
previous()
Gets the previous element from the container.void
remove()
-
Methods inherited from class org.apache.commons.collections4.iterators.AbstractUntypedIteratorDecorator
getIterator, hasNext
-
-
-
-
Method Detail
-
next
public E next()
Description copied from class:AbstractIteratorDecorator
- Specified by:
next
in interfacejava.util.Iterator<E>
- Overrides:
next
in classAbstractIteratorDecorator<E>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<E>
- Overrides:
remove
in classAbstractUntypedIteratorDecorator<E,E>
-
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
public E 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
-
-