Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for toImmutableMultiset (0.2 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkArgument;
    import static com.google.common.collect.ImmutableMultiset.toImmutableMultiset;
    import static com.google.common.collect.Iterators.emptyIterator;
    import static com.google.common.collect.Iterators.singletonIterator;
    import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableMultiset.java

       * encounter order.
       *
       * @since 21.0
       */
      public static <E> Collector<E, ?, ImmutableMultiset<E>> toImmutableMultiset() {
        return CollectCollectors.toImmutableMultiset(Function.identity(), e -> 1);
      }
    
      /**
       * Returns a {@code Collector} that accumulates elements into an {@code ImmutableMultiset} whose
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      @Deprecated
      public static <E> Collector<E, ?, ImmutableMultiset<E>> toImmutableMultiset() {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Not supported. Use {@link #toImmutableSortedMultiset} instead. This method exists only to hide
       * {@link ImmutableMultiset#toImmutableMultiset} from consumers of {@code
       * ImmutableSortedMultiset}.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

      public static <E> Collector<E, ?, ImmutableMultiset<E>> toImmutableMultiset() {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Not supported. Use {@link #toImmutableSortedMultiset} instead. This method exists only to hide
       * {@link ImmutableMultiset#toImmutableMultiset} from consumers of {@code
       * ImmutableSortedMultiset}.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CollectCollectors.java

        return (Collector) TO_IMMUTABLE_RANGE_SET;
      }
    
      // Multisets
    
      static <T extends @Nullable Object, E> Collector<T, ?, ImmutableMultiset<E>> toImmutableMultiset(
          Function<? super T, ? extends E> elementFunction, ToIntFunction<? super T> countFunction) {
        checkNotNull(elementFunction);
        checkNotNull(countFunction);
        return Collector.of(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Multisets.java

       * {@code stream.map(function).collect(Collectors.toCollection(supplier))}.
       *
       * <p>To collect to an {@link ImmutableMultiset}, use {@link
       * ImmutableMultiset#toImmutableMultiset}.
       *
       * @since 22.0
       */
      public static <T extends @Nullable Object, E extends @Nullable Object, M extends Multiset<E>>
          Collector<T, ?, M> toMultiset(
              Function<? super T, E> elementFunction,
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/FluentIterable.java

      }
    
      /**
       * Returns an {@code ImmutableMultiset} containing all of the elements from this fluent iterable.
       *
       * <p><b>{@code Stream} equivalent:</b> pass {@link ImmutableMultiset#toImmutableMultiset} to
       * {@code stream.collect()}.
       *
       * @throws NullPointerException if any element is null
       * @since 19.0
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multisets.java

       * {@code stream.map(function).collect(Collectors.toCollection(supplier))}.
       *
       * <p>To collect to an {@link ImmutableMultiset}, use {@link
       * ImmutableMultiset#toImmutableMultiset}.
       *
       * @since 33.2.0 (available since 22.0 in guava-jre)
       */
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 41.3K bytes
    - Viewed (0)
Back to top