Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for findFirst (0.09 sec)

  1. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java

            Dependency dep = result.getEffectiveModel().getDelegate().getDependencyManagement().getDependencies().stream()
                    .filter(d -> "test:mydep:jar".equals(d.getManagementKey()))
                    .findFirst()
                    .get();
            assertEquals("0.2", dep.getVersion());
            assertEquals(0, result.getProblems().size());
        }
    
        /**
         * This test has
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

                MavenProject resumingFromProject = projects.stream()
                        .filter(project -> projectSelector.isMatchingProject(project, selector, reactorDirectory))
                        .findFirst()
                        .orElseThrow(() -> new MavenExecutionException(
                                "Could not find project to resume reactor build from: " + selector + " vs "
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. android/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(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  7. 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)
  8. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  9. 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 a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  10. 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}.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
Back to top