- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for linearTimeSizeImpl (0.15 sec)
-
android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java
implements Serializable { final Map<E, Integer> backingMap = Maps.newHashMap(); @Override public int size() { return Multisets.linearTimeSizeImpl(this); } @Override public void clear() { throw new UnsupportedOperationException(); } @Override public int count(@Nullable Object element) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 5.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java
implements Serializable { final Map<E, Integer> backingMap = Maps.newHashMap(); @Override public int size() { return Multisets.linearTimeSizeImpl(this); } @Override public void clear() { throw new UnsupportedOperationException(); } @Override public int count(@Nullable Object element) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 5.6K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.7K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 41.5K bytes - Viewed (0)