Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 732 for collectors (0.04 sec)

  1. api/maven-api-model/src/main/mdo/maven.mdo

         */
        public String toString() {
            return "PatternSet [" +
                "includes: {" + getIncludes().stream().collect(java.util.stream.Collectors.joining(", ")) + "}, " +
                "excludes: {" + getExcludes().stream().collect(java.util.stream.Collectors.joining(", ")) + "}]";
        }
                ]]>
              </code>
            </codeSegment>
          </codeSegments>
        </class>
        <class>
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Aug 07 14:32:16 UTC 2025
    - 132.7K bytes
    - Viewed (0)
  2. compat/maven-builder-support/src/test/java/org/apache/maven/building/ProblemCollectorFactoryTest.java

            ProblemCollector collector2 = ProblemCollectorFactory.newInstance(Collections.singletonList(problem));
    
            assertNotSame(collector1, collector2);
            assertEquals(0, collector1.getProblems().size());
            assertEquals(1, collector2.getProblems().size());
        }
    
        @Test
        void testAddProblem() {
            ProblemCollector collector = ProblemCollectorFactory.newInstance(null);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sun Jul 20 20:19:43 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

    import com.google.errorprone.annotations.concurrent.LazyInit;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Set;
    import java.util.stream.Collector;
    import jsinterop.annotations.JsMethod;
    import org.jspecify.annotations.Nullable;
    
    /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/TopKSelector.java

     * create the {@code TopKSelector} instance.
     *
     * <p>If your input data is available as a {@link Stream}, prefer passing {@link
     * Comparators#least(int)} to {@link Stream#collect(java.util.stream.Collector)}. If it is available
     * as an {@link Iterable} or {@link Iterator}, prefer {@link Ordering#leastOf(Iterable, int)}.
     *
     * <p>This uses the same efficient implementation as {@link Ordering#leastOf(Iterable, int)},
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

                .put("two", 2)
                .build();
        CollectorTester.of(collector, equivalence)
            .expectCollects(expected, mapEntry("one", 1), mapEntry("two", 2), mapEntry("three", 3));
      }
    
      public void testToImmutableSortedMap_exceptionOnDuplicateKey() {
        Collector<Entry<String, Integer>, ?, ImmutableSortedMap<String, Integer>> collector =
            toImmutableSortedMap(Ordering.natural(), Entry::getKey, Entry::getValue);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

            NullPointerException.class,
            () -> ImmutableSetMultimap.copyOf((Multimap<String, Integer>) input));
      }
    
      public void testToImmutableSetMultimap() {
        Collector<Entry<String, Integer>, ?, ImmutableSetMultimap<String, Integer>> collector =
            toImmutableSetMultimap(Entry::getKey, Entry::getValue);
        BiPredicate<ImmutableSetMultimap<?, ?>, ImmutableSetMultimap<?, ?>> equivalence =
            Equivalence.equals()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmHttpURLConnection.java

            private final OutputStream collector;
    
            public CacheStream(final OutputStream stream, final OutputStream collector) {
                this.stream = stream;
                this.collector = collector;
            }
    
            @Override
            public void close() throws IOException {
                this.stream.close();
                this.collector.close();
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            private final OutputStream collector;
    
            public CacheStream(final OutputStream stream, final OutputStream collector) {
                this.stream = stream;
                this.collector = collector;
            }
    
            @Override
            public void close() throws IOException {
                stream.close();
                collector.close();
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

                .and(Equivalence.equals());
        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableSortedSet.of("a", "b", "c", "d"), "a", "b", "a", "c", "b", "b", "d");
      }
    
      public void testToImmutableSortedSet_customComparator() {
        Collector<String, ?, ImmutableSortedSet<String>> collector =
            toImmutableSortedSet(String.CASE_INSENSITIVE_ORDER);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Comparators.java

        checkNonnegative(k, "k");
        checkNotNull(comparator);
        return Collector.of(
            () -> TopKSelector.<T>least(k, comparator),
            TopKSelector::offer,
            TopKSelector::combine,
            TopKSelector::topK,
            Collector.Characteristics.UNORDERED);
      }
    
      /**
       * Returns a {@code Collector} that returns the {@code k} greatest (relative to the specified
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top