Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for toImmutableMultiset (0.35 seconds)

  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;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 24.9K bytes
    - Click Count (0)
  2. 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}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 29.5K bytes
    - Click Count (0)
  3. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ImmutableMultiset.java

       */
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  5. 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}.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 35.2K bytes
    - Click Count (0)
  6. android/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(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 16.9K bytes
    - Click Count (0)
  7. 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(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  8. android/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.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  9. 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.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 34.7K bytes
    - Click Count (0)
  10. 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.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 41.3K bytes
    - Click Count (0)
Back to Top