Class TransformListIterator<E,W>
java.lang.Object
com.aoapps.collections.transformers.TransformIterator<E,W>
com.aoapps.collections.transformers.TransformListIterator<E,W>
- All Implemented Interfaces:
Iterator<E>,ListIterator<E>
Wraps a
ListIterator, with optional type conversion.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoapps.collections.transformers.TransformIterator
transformer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformListIterator(ListIterator<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ListIterator<W> booleanintstatic <E> TransformListIterator<E, E> of(ListIterator<E> wrapped) static <E,W> TransformListIterator <E, W> of(ListIterator<W> wrapped, Transformer<E, W> transformer) Wraps a list iterator.previous()intvoidMethods inherited from class com.aoapps.collections.transformers.TransformIterator
forEachRemaining, hasNext, next, of, of, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface java.util.ListIterator
hasNext, next, remove
-
Constructor Details
-
TransformListIterator
-
-
Method Details
-
of
public static <E,W> TransformListIterator<E,W> of(ListIterator<W> wrapped, Transformer<E, W> transformer) Wraps a list iterator. -
of
- See Also:
-
getWrapped
- Overrides:
getWrappedin classTransformIterator<E,W>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<E>
-
previous
- Specified by:
previousin interfaceListIterator<E>- Throws:
NoSuchElementException
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<E>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<E>
-
set
- Specified by:
setin interfaceListIterator<E>
-
add
- Specified by:
addin interfaceListIterator<E>
-
