and method

Predicate<T> and(
  1. Predicate<T> other
)

Returns a composed Predicate that represents a short-circuiting logical AND of this Predicate and other.

Implementation

Predicate<T> and(Predicate<T> other) => (value) => this(value) && other(value);