- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for foreachEntry (0.09 sec)
-
guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 10.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java
ImmutableSortedMultiset<String> multiset = ImmutableSortedMultiset.<String>naturalOrder().add("a").add("b").add("a").add("c").build(); List<Multiset.Entry<String>> entries = new ArrayList<>(); multiset.forEachEntry((e, c) -> entries.add(Multisets.immutableEntry(e, c))); assertThat(entries) .containsExactly( Multisets.immutableEntry("a", 2), Multisets.immutableEntry("b", 1),
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 22.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multisets.java
private static <E extends @Nullable Object> boolean addAllImpl( Multiset<E> self, Multiset<? extends E> elements) { if (elements.isEmpty()) { return false; } elements.forEachEntry(self::add); return true; } /** An implementation of {@link Multiset#removeAll}. */ static boolean removeAllImpl(Multiset<?> self, Collection<?> elementsToRemove) { Collection<?> collection =
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/TreeMultiset.java
setCount(prevEntry.getElement(), 0); prevEntry = null; } }; } @Override public void forEachEntry(ObjIntConsumer<? super E> action) { checkNotNull(action); for (AvlNode<E> node = firstNode(); node != header && node != null && !range.tooHigh(node.getElement()); node = node.succ()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 20:24:49 UTC 2024 - 34.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/Maps.java
return entrySpliterator(); } @Override public void forEach(Consumer<? super Entry<K, V>> action) { forEachEntry(action); } }; } void forEachEntry(Consumer<? super Entry<K, V>> action) { entryIterator().forEachRemaining(action); } @Override public void clear() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 167.4K bytes - Viewed (0)