- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for linearTimeSizeImpl (0.07 sec)
-
android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingMultiset.java
* you override {@link #entrySet}, you may wish to override {@link #size} to forward to this * implementation. * * @since 7.0 */ protected int standardSize() { return Multisets.linearTimeSizeImpl(this); } /** * A sensible, albeit inefficient, definition of {@link #equals} in terms of {@code * entrySet().size()} and {@link #count}. If you override either of these methods, you may wish toRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 10.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/Multisets.java
& (Spliterator.ORDERED | Spliterator.NONNULL | Spliterator.IMMUTABLE)), multiset.size()); } /** An implementation of {@link Multiset#size}. */ static int linearTimeSizeImpl(Multiset<?> multiset) { long size = 0; for (Entry<?> entry : multiset.entrySet()) { size += entry.getCount(); } return Ints.saturatedCast(size); } /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 41.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Multisets.java
} totalCount--; canRemove = false; } } /** An implementation of {@link Multiset#size}. */ static int linearTimeSizeImpl(Multiset<?> multiset) { long size = 0; for (Entry<?> entry : multiset.entrySet()) { size += entry.getCount(); } return Ints.saturatedCast(size); } /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 41.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingMultiset.java
* you override {@link #entrySet}, you may wish to override {@link #size} to forward to this * implementation. * * @since 7.0 */ protected int standardSize() { return Multisets.linearTimeSizeImpl(this); } /** * A sensible, albeit inefficient, definition of {@link #equals} in terms of {@code * entrySet().size()} and {@link #count}. If you override either of these methods, you may wish toRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 10.3K bytes - Viewed (0)