- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for toMultiset (0.05 seconds)
-
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())
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 31.2K bytes - Click Count (0) -
android/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}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) -
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}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)