MCPcopy Index your code
hub / github.com/apache/groovy / first

Method first

src/main/java/org/codehaus/groovy/ast/query/AstQuery.java:272–274  ·  view source on GitHub ↗

@return the first match in document order, or null; stops at the first match

()

Source from the content-addressed store, hash-verified

270 * @return the first match in document order, or {@code null}; stops at the first match
271 */
272 public T first() {
273 return findFirst().orElse(null);
274 }
275
276 /**
277 * Performs the given action for each match in document order.

Callers

nothing calls this directly

Calls 2

findFirstMethod · 0.95
orElseMethod · 0.45

Tested by

no test coverage detected