Payload - The payload type.public final class FilteredIterable<Payload> extends Object implements Iterable<Payload>
FilteredIterable is an Iterable that can be wrapped around
a given Iterable and generates Iterators that
filters out values according to a given Predicate.| Constructor and Description |
|---|
FilteredIterable(Iterable<? extends Payload> iterable,
Predicate<? super Payload> predicate)
Creates a new
FilteredIterable. |
FilteredIterable(Iterable<? extends Payload> iterable,
Predicate<? super Payload> predicate,
boolean invertPredicate)
Creates a new
FilteredIterable. |
| Modifier and Type | Method and Description |
|---|---|
FilteredIterator<Payload> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FilteredIterable(Iterable<? extends Payload> iterable, Predicate<? super Payload> predicate) throws IllegalArgumentException
FilteredIterable.iterable - The Iterable to iterate over.predicate - The Predicate to be used.IllegalArgumentException - If the given Iterable is null or if the
given Predicate is null.public FilteredIterable(Iterable<? extends Payload> iterable, Predicate<? super Payload> predicate, boolean invertPredicate) throws IllegalArgumentException
FilteredIterable.public FilteredIterator<Payload> iterator()
Copyright © 2015–2017 Markenwerk – Gesellschaft für markenbildende Maßnahmen mbH. All rights reserved.