Package hudson.util
Class AdaptedIterator<T,U>
- java.lang.Object
-
- hudson.util.AdaptedIterator<T,U>
-
- All Implemented Interfaces:
Iterator<U>
public abstract class AdaptedIterator<T,U> extends Object implements Iterator<U>
Iteratorthat adapts the values returned from another iterator.This class should be really in
Iteratorsbut for historical reasons it's here.- Since:
- 1.121
- Author:
- Kohsuke Kawaguchi
- See Also:
Iterators
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAdaptedIterator(Iterable<? extends T> core)protectedAdaptedIterator(Iterator<? extends T> core)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Uadapt(T item)booleanhasNext()Unext()voidremove()-
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
-
-