E - the type of the elementspublic final class GrepIterable<E>
extends java.lang.Object
implements java.lang.Iterable<E>
GrepIterable iterates elements which are matched by the regular
expression.| Constructor and Description |
|---|
GrepIterable(java.lang.Iterable<? extends E> iter,
java.lang.String regex)
Creates a
GrepIterable. |
public GrepIterable(java.lang.Iterable<? extends E> iter, java.lang.String regex)
GrepIterable.iter - an Iterableregex - regular expressionjava.lang.NullPointerException - if iter or regex is null