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

Method find

output/java_guava/1.4.16/Iterables.java:676–678  ·  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

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

Callers 2

applyMethod · 0.45
separatorStartMethod · 0.45

Calls 2

findMethod · 0.95
iteratorMethod · 0.65

Tested by

no test coverage detected