@Test void filter() { Assertions.assertTrue(PandaStream.of(VALUES) .filter("2"::equals) .head() .isDefined()); }
public PandaStream<T> filter(Predicate<T> predicate) { return with(stream.filter(predicate)); }
PandaStream { public PandaStream<T> filter(Predicate<T> predicate) { return with(stream.filter(predicate)); } }
PandaStream { public PandaStream<T> filter(Predicate<T> predicate) { return with(stream.filter(predicate)); } private  PandaStream(Stream<T> stream); }
PandaStream { public PandaStream<T> filter(Predicate<T> predicate) { return with(stream.filter(predicate)); } private  PandaStream(Stream<T> stream); PandaStream<R> stream(Function<Stream<T>, Stream<R>> function); PandaStream<R> transform(Function<Stream<T>, Stream<R>> function); PandaStream<R> map(Function<T, R> function); PandaStream<R> flatMap(Function<T, Iterable<R>> function); PandaStream<T> filter(Predicate<T> predicate); PandaStream<T> filterNot(Predicate<T> predicate); PandaStream<T> distinct(); PandaStream<T> sorted(); PandaStream<T> sorted(Comparator<? super T> comparator); Option<T> find(Predicate<T> predicate); Option<T> head(); long count(Predicate<T> predicate); long count(); R collect(Collector<? super T, A, R> collector); PandaStream<T> takeWhile(Predicate<T> condition); T[] toArray(IntFunction<T[]> function); List<T> toList(); Stream<T> toStream(); static PandaStream<T> of(Stream<T> stream); static PandaStream<T> of(Collection<T> collection); static PandaStream<T> of(Iterable<T> iterable); @SafeVarargs static PandaStream<T> of(T... array); }
PandaStream { public PandaStream<T> filter(Predicate<T> predicate) { return with(stream.filter(predicate)); } private  PandaStream(Stream<T> stream); PandaStream<R> stream(Function<Stream<T>, Stream<R>> function); PandaStream<R> transform(Function<Stream<T>, Stream<R>> function); PandaStream<R> map(Function<T, R> function); PandaStream<R> flatMap(Function<T, Iterable<R>> function); PandaStream<T> filter(Predicate<T> predicate); PandaStream<T> filterNot(Predicate<T> predicate); PandaStream<T> distinct(); PandaStream<T> sorted(); PandaStream<T> sorted(Comparator<? super T> comparator); Option<T> find(Predicate<T> predicate); Option<T> head(); long count(Predicate<T> predicate); long count(); R collect(Collector<? super T, A, R> collector); PandaStream<T> takeWhile(Predicate<T> condition); T[] toArray(IntFunction<T[]> function); List<T> toList(); Stream<T> toStream(); static PandaStream<T> of(Stream<T> stream); static PandaStream<T> of(Collection<T> collection); static PandaStream<T> of(Iterable<T> iterable); @SafeVarargs static PandaStream<T> of(T... array);  }