Returns the first element in iterable that satisfies the given predicate; use this method only when such an element is known to exist. If it is possible that no element will match, use #tryFind or #find(Iterable, Predicate, Object) instead. @throws NoSuchElementExcept
(Iterable<T> iterable, Predicate<? super T> predicate)
| 624 | * the given predicate |
| 625 | */ |
| 626 | public static <T> T find(Iterable<T> iterable, Predicate<? super T> predicate) { |
| 627 | return Iterators.find(iterable.iterator(), predicate); |
| 628 | } |
| 629 | |
| 630 | /** |
| 631 | * Returns the first element in {@code iterable} that satisfies the given |
no test coverage detected