MCPcopy Create free account
hub / github.com/antlr/codebuff / find

Method find

corpus/java/training/guava/collect/Iterables.java:626–628  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

applyMethod · 0.45
separatorStartMethod · 0.45

Calls 2

findMethod · 0.95
iteratorMethod · 0.65

Tested by

no test coverage detected