Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 167 for Collector (0.08 sec)

  1. guava/src/com/google/common/collect/ImmutableTable.java

        implements Serializable {
    
      /**
       * Returns a {@code Collector} that accumulates elements into an {@code ImmutableTable}. Each
       * input element is mapped to one cell in the returned table, with the rows, columns, and values
       * generated by applying the specified functions.
       *
       * <p>The returned {@code Collector} will throw a {@code NullPointerException} at collection time
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

        return max(10L, Runtime.getRuntime().totalMemory() / (32L * 1024L * 1024L));
      }
    
      /**
       * Waits until the given future {@linkplain Future#isDone is done}, invoking the garbage collector
       * as necessary to try to ensure that this will happen.
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      @SuppressWarnings("removal") // b/260137033
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/cache/CacheStats.java

       *
       * <p><b>Note:</b> the values of the metrics are undefined in case of overflow (though it is
       * guaranteed not to throw an exception). If you require specific handling, we recommend
       * implementing your own stats collector.
       */
      public long requestCount() {
        return saturatedAdd(hitCount, missCount);
      }
    
      /** Returns the number of times {@link Cache} lookup methods have returned a cached value. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ResourcesTest.java

            new LineProcessor<List<String>>() {
              final List<String> collector = new ArrayList<>();
    
              @Override
              public boolean processLine(String line) {
                collector.add(whitespace().trimFrom(line));
                return true;
              }
    
              @Override
              public List<String> getResult() {
                return collector;
              }
            };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        CollectorTester.of(collector, equivalence)
            .expectCollects(
                ImmutableMultiset.<TypeWithDuplicates>builder().add(a).addCopies(b1, 2).add(c).build(),
                a,
                b1,
                c,
                b2);
        collector = toImmutableMultiset(e -> e, e -> 1);
        CollectorTester.of(collector, equivalence)
            .expectCollects(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/FilesTest.java

            new LineProcessor<List<String>>() {
              final List<String> collector = new ArrayList<>();
    
              @Override
              public boolean processLine(String line) {
                collector.add(line);
                return true;
              }
    
              @Override
              public List<String> getResult() {
                return collector;
              }
            };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/FilesTest.java

            new LineProcessor<List<String>>() {
              final List<String> collector = new ArrayList<>();
    
              @Override
              public boolean processLine(String line) {
                collector.add(line);
                return true;
              }
    
              @Override
              public List<String> getResult() {
                return collector;
              }
            };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  8. 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)
  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/ImmutableSortedMultiset.java

      /**
       * Returns a {@code Collector} that accumulates the input elements into a new {@code
       * ImmutableMultiset}. Elements are sorted by the specified comparator.
       *
       * <p><b>Warning:</b> {@code comparator} should be <i>consistent with {@code equals}</i> as
       * explained in the {@link Comparator} documentation.
       *
       * @since 21.0
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 29.5K bytes
    - Viewed (0)
Back to top