Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for findFirst (0.05 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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
    - 36.8K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

            DispatcherMeta meta = secDispatcher.availableDispatchers().stream()
                    .filter(d -> Objects.equals(config.getDefaultDispatcher(), d.name()))
                    .findFirst()
                    .orElseThrow();
            if (!meta.fields().isEmpty()) {
                result = prompt.prompt(
                        context.header,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

                if (e.getSecond().matcher(url).matches()) {
                    return e.getFirst();
                }
                return null;
            }).filter(StringUtil::isNotBlank).findFirst()//
                    .map(s -> clientFactory.getClient(s + ":" + url))//
                    .orElseGet(() -> clientFactory.getClient(url));
            if (logger.isDebugEnabled()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. 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);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
Back to top