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)
| 674 | |
| 675 | |
| 676 | public static <T> T find(Iterable<T> iterable, Predicate<? super T> predicate) { |
| 677 | return Iterators.find(iterable.iterator(), predicate); |
| 678 | } |
| 679 | |
| 680 | /** |
| 681 | * Returns the first element in {@code iterable} that satisfies the given |
no test coverage detected