Package generic
Class FilteredIterator<T>
- java.lang.Object
-
- generic.FilteredIterator<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Iterator<T>
public class FilteredIterator<T> extends java.lang.Object implements java.util.Iterator<T>, java.lang.Iterable<T>
-
-
Constructor Summary
Constructors Constructor Description FilteredIterator(java.util.Iterator<T> it, java.util.function.Predicate<T> filter)
Construct a new FilteredIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
java.util.Iterator<T>
iterator()
T
next()
void
remove()
-