- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for linearTimeSizeImpl (0.19 sec)
-
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) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 5.5K bytes - Viewed (0) -
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) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 5.5K 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 to
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri May 12 15:26:39 GMT 2023 - 10.4K 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 to
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri May 12 15:26:39 GMT 2023 - 10.4K 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); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 41.7K bytes - Viewed (0)