Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for toMultiset (0.12 sec)

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

       */
      public static <T extends @Nullable Object, E extends @Nullable Object, M extends Multiset<E>>
          Collector<T, ?, M> toMultiset(
              Function<? super T, E> elementFunction,
              ToIntFunction<? super T> countFunction,
              Supplier<M> multisetSupplier) {
        return CollectCollectors.toMultiset(elementFunction, countFunction, multisetSupplier);
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

      public static <T extends @Nullable Object, E extends @Nullable Object, M extends Multiset<E>>
          Collector<T, ?, M> toMultiset(
              Function<? super T, E> elementFunction,
              ToIntFunction<? super T> countFunction,
              Supplier<M> multisetSupplier) {
        return CollectCollectors.toMultiset(elementFunction, countFunction, multisetSupplier);
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/CollectCollectors.java

            (Multiset<E> multiset) -> ImmutableMultiset.copyFromEntries(multiset.entrySet()));
      }
    
      static <T extends @Nullable Object, E extends @Nullable Object, M extends Multiset<E>>
          Collector<T, ?, M> toMultiset(
              Function<? super T, E> elementFunction,
              ToIntFunction<? super T> countFunction,
              Supplier<M> multisetSupplier) {
        checkNotNull(elementFunction);
        checkNotNull(countFunction);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

            .containsExactly(4, 3, 1)
            .inOrder();
      }
    
      public void testToMultiset() {
        assertThat(fluent(1, 2, 1, 3, 2, 4).toMultiset()).containsExactly(1, 1, 2, 2, 3, 4).inOrder();
      }
    
      public void testToMultiset_empty() {
        assertThat(fluent().toMultiset()).isEmpty();
      }
    
      public void testToMap() {
        assertThat(fluent(1, 2, 3).toMap(Functions.toStringFunction()).entrySet())
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/FluentIterable.java

       *
       * @throws NullPointerException if any element is null
       * @since 19.0
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
      public final ImmutableMultiset<@NonNull E> toMultiset() {
        return ImmutableMultiset.copyOf((Iterable<@NonNull E>) getDelegate());
      }
    
      /**
       * Returns an immutable map whose keys are the distinct elements of this {@code FluentIterable}
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 34.7K bytes
    - Viewed (0)
Back to top