test method

Supplier<bool> test(
  1. Predicate<T> predicate
)

Returns a composed Supplier that calls this Supplier and applies the result to predicate.

Implementation

Supplier<bool> test(Predicate<T> predicate) => () => predicate(this());