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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasPrevious()Checks to see if there is a previous element that can be iterated to.Enext()Eprevious()Gets the previous element from the container.voidremove()-
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
-
-
-
-
Method Detail
-
next
public E next()
Description copied from class:AbstractIteratorDecorator
-
remove
public void 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
public E previous()
Description copied from interface:OrderedIteratorGets the previous element from the container.- Specified by:
previousin interfaceOrderedIterator<E>- Returns:
- the previous element in the iteration
-
-