Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for findFirst (0.09 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

                            .map(org.apache.maven.api.services.Source::getPath)
                            .orElse(null))
                    .filter(Objects::nonNull)
                    .findFirst()
                    .orElseGet(() -> modelLocator.locatePom(projectDirectory));
            if (!pom.equals(projectDirectory) && !pom.getParent().equals(projectDirectory)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/graph/ProjectSelector.java

                List<MavenProject> projects, File reactorDirectory, String selector) {
            return projects.stream()
                    .filter(project -> isMatchingProject(project, selector, reactorDirectory))
                    .findFirst();
        }
    
        File getBaseDirectoryFromRequest(MavenExecutionRequest request) {
            return request.getBaseDirectory() != null ? new File(request.getBaseDirectory()) : null;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

          this.supplier = supplier;
        }
      }
    
      @Param private CollectionType source;
    
      enum Operation {
        FIND_FIRST {
          @Override
          Object operate(Stream<?> stream) {
            return stream.findFirst();
          }
        },
        STREAMS_ONLY_ELEMENT {
          @Override
          Object operate(Stream<?> stream) {
            try {
              return stream.collect(onlyElement());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultMojoExecution.java

        }
    
        @Override
        public PluginExecution getModel() {
            return delegate.getPlugin().getExecutions().stream()
                    .filter(pe -> Objects.equals(pe.getId(), getExecutionId()))
                    .findFirst()
                    .map(org.apache.maven.model.PluginExecution::getDelegate)
                    .orElse(null);
        }
    
        @Override
        public MojoDescriptor getDescriptor() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/QueryStringBuilder.java

            final int maxQueryLength = fessConfig.getQueryMaxLengthAsInteger();
    
            stream(conditions.get(SearchRequestParams.AS_OCCURRENCE))
                    .of(stream -> stream.filter(this::isOccurrence).findFirst().ifPresent(q -> queryBuf.insert(0, q + ":")));
    
            stream(conditions.get(SearchRequestParams.AS_Q)).of(stream -> stream
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

            }
    
            private Relocation getRelocation(Artifact artifact) {
                return relocations.stream()
                        .filter(r -> r.predicate.test(artifact))
                        .findFirst()
                        .orElse(null);
            }
        }
    
        private Relocations parseRelocations(RepositorySystemSession session) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/utils/Os.java

                            FAMILY_UNIX,
                            FAMILY_WIN9X,
                            FAMILY_WINDOWS,
                            FAMILY_ZOS)
                    .filter(Os::isFamily)
                    .findFirst()
                    .orElse(null);
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top