- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for newCount (0.04 sec)
-
android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
checkNonnegative(oldCount, "oldCount"); checkNonnegative(newCount, "newCount"); int entryIndex = backingMap.indexOf(element); if (entryIndex == -1) { if (oldCount != 0) { return false; } if (newCount > 0) { backingMap.put(element, newCount); size += newCount; } return true; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 05 23:15:58 UTC 2025 - 7.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/EnumMultiset.java
return count(element); } int index = element.ordinal(); int oldCount = counts[index]; long newCount = (long) oldCount + occurrences; checkArgument(newCount <= Integer.MAX_VALUE, "too many occurrences: %s", newCount); counts[index] = (int) newCount; if (oldCount == 0) { distinctElements++; } size += occurrences; return oldCount; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractMultiset.java
return setCountImpl(this, element, count); } @CanIgnoreReturnValue @Override public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) { return setCountImpl(this, element, oldCount, newCount); } // Bulk Operations /** * {@inheritDoc} * * <p>This implementation is highly efficient when {@code elementsToAdd} is itself a {@link * Multiset}.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 5.9K bytes - Viewed (0)