- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 15 for findFirst (0.68 seconds)
-
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelUpgradeStrategyTest.java
Element cleanPlugin = plugins.children("plugin") .filter(p -> "maven-clean-plugin" .equals(p.child("artifactId").orElse(null).textContent())) .findFirst() .orElse(null); assertNotNull(cleanPlugin); Element cleanExecutions = cleanPlugin.child("executions").orElse(null); Element preCleanExecution = cleanExecutionsCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 38.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterables.java
* will match, use {@link #tryFind} or {@link #find(Iterable, Predicate, Object)} instead. * * <p><b>{@code Stream} equivalent:</b> {@code stream.filter(predicate).findFirst().get()} * * @throws NoSuchElementException if no element in {@code iterable} matches the given predicate */ @ParametricNullness public static <T extends @Nullable Object> T find(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 43.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java
return getProjectArtifacts(project) .filter(artifact -> Objects.equals(requestedRepositoryConflictId, ArtifactIdUtils.toVersionlessId(artifact))) .findFirst() .orElse(null); } /** * Determines whether the specified artifact refers to test classes. * * @param artifact The artifact to check, must not be {@code null}.
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Dec 15 11:20:38 GMT 2025 - 24.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/Streams.java
* streams. * * <p>If the stream has nondeterministic order, this has equivalent semantics to {@link * Stream#findAny} (which you might as well use). * * @see Stream#findFirst() * @throws NullPointerException if the last element of the stream is null */ /* * By declaring <T> instead of <T extends @Nullable Object>, we declare this method as requiring aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 36.4K bytes - Click Count (0) -
.teamcity/scripts/CheckWrapper.java
lines.stream() .map(String::trim) .filter(l -> !l.isEmpty() && !l.startsWith("#")) .filter(l -> l.startsWith("distributionUrl")) .findFirst() .orElseThrow(() -> new IllegalStateException("distributionUrl not found in " + props)); int idx = distributionUrl.indexOf('='); if (idx < 0) {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Tue Jan 20 03:53:25 GMT 2026 - 6.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* differences include: * * <ul> * <li>A stream is <i>single-use</i>; it becomes invalid as soon as any "terminal operation" such * as {@code findFirst()} or {@code iterator()} is invoked. (Even though {@code Stream} * contains all the right method <i>signatures</i> to implement {@link Iterable}, it does not
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 34.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Streams.java
* streams. * * <p>If the stream has nondeterministic order, this has equivalent semantics to {@link * Stream#findAny} (which you might as well use). * * @see Stream#findFirst() * @throws NullPointerException if the last element of the stream is null */ /* * By declaring <T> instead of <T extends @Nullable Object>, we declare this method as requiring aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 36.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/FluentIterable.java
* standard. Key differences include: * * <ul> * <li>A stream is <i>single-use</i>; it becomes invalid as soon as any "terminal operation" such * as {@code findFirst()} or {@code iterator()} is invoked. (Even though {@code Stream} * contains all the right method <i>signatures</i> to implement {@link Iterable}, it does not
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 34.7K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java
return result; } else { session.getAllProjects().stream() .filter(MavenProject::isExecutionRoot) .findFirst() .ifPresent(buildResumptionDataRepository::removeResumptionData); } } finally { try { afterSessionEnd(session);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Dec 29 10:43:38 GMT 2025 - 28.8K bytes - Click Count (1) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java
try (Stream<String> lines = Files.lines(file.toPath())) { String packageLine = lines.filter(line -> line.startsWith("package")) .findFirst() .orElseThrow(() -> new IOException("Can't find package definition in file " + file)); Matcher matcher = pattern.matcher(packageLine); if (matcher.find()) {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sun Mar 01 05:52:34 GMT 2026 - 11.6K bytes - Click Count (0)