Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 45 for findFirst (0.05 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ProjectBuildList.java

         */
        public ProjectSegment findByMavenProject(MavenProject mavenProject) {
            return items.stream()
                    .filter(pb -> mavenProject.equals(pb.getProject()))
                    .findFirst()
                    .orElse(null);
        }
    
        @Override
        public Iterator<ProjectSegment> iterator() {
            return items.iterator();
        }
    
        public void closeAll() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.1K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/JavaClassPublicifier.java

            }
        }
    
        private static void makeInnerClassPublic(ClassNode classNode, String innerClass) {
            InnerClassNode innerClassNode = classNode.innerClasses.stream().filter(node -> node.innerName.equals(innerClass)).findFirst().get();
            innerClassNode.access &= ~ACC_PRIVATE;
            innerClassNode.access |= ACC_PUBLIC;
        }
    
        private void writeClass(String classFile, ClassNode classNode) throws IOException {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 4K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java

                Type type = lookup.lookupList(TypeProvider.class).stream()
                        .flatMap(p -> p.provides().stream())
                        .filter(t -> Objects.equals(id, t.id()))
                        .findFirst()
                        .orElse(null);
                if (type == null) {
                    // Copy data as the ArtifactHandler is not immutable, but Type should be.
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed May 14 04:47:58 GMT 2025
    - 4K bytes
    - Click Count (0)
  4. 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)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/info/GlobalBuildInfoPlugin.java

        }
    
        private InstallationLocation getJavaInstallation(File javaHome) {
            return getAvailableJavaInstallationLocationSteam().filter(installationLocation -> isSameFile(javaHome, installationLocation))
                .findFirst()
                .orElseThrow(() -> new GradleException("Could not locate available Java installation in Gradle registry at: " + javaHome));
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Aug 17 10:02:58 GMT 2021
    - 18.1K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/YamlRestCompatTestPlugin.java

                            .getSrcDirs()
                            .stream()
                            .filter(f -> f.isDirectory() && f.getName().equals("resources"))
                            .findFirst()
                            .orElse(null)
                    );
                    task.setSkipHasRestTestCheck(true);
                    task.setConfigToFileTree(
                        config -> project.fileTree(
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 16:26:11 GMT 2021
    - 11.7K bytes
    - Click Count (0)
  7. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/info/GitInfo.java

                            revision = lines.map(p::matcher)
                                    .filter(Matcher::matches)
                                    .map(m -> m.group(1))
                                    .findFirst()
                                    .orElseThrow(() -> new IOException("Packed reference not found for refName " + refName));
                        }
                    } else {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 7.8K bytes
    - Click Count (0)
  8. 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 a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 36.4K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/DockerSupportService.java

         */
        private Optional<String> getDockerPath() {
            // Check if the Docker binary exists
            return List.of(DOCKER_BINARIES).stream().filter(path -> new File(path).exists()).findFirst();
        }
    
        /**
         * Searches the entries in {@link #DOCKER_COMPOSE_BINARIES} for the Docker Compose CLI. This method does
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 14.8K bytes
    - Click Count (0)
  10. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlService.java

        }
    
        /** Holder class for lazy initialization of the default instance */
        private static final class Holder {
            static final XmlService INSTANCE = ServiceLoader.load(XmlService.class)
                    .findFirst()
                    .orElseThrow(() -> new IllegalStateException("No XmlService implementation found"));
    
            private Holder() {}
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 13:33:59 GMT 2025
    - 9.2K bytes
    - Click Count (0)
Back to Top