- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 68 for occurrences (0.28 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava/src/com/google/common/collect/Multiset.java
* * @param element the element to count occurrences of * @return the number of occurrences of the element in this multiset; possibly zero but never * negative */ int count(@CompatibleWith("E") @Nullable Object element); // Bulk Operations /** * Adds a number of occurrences of an element to this multiset. Note that if {@code occurrences ==
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 19.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/Multiset.java
* * @param element the element to count occurrences of * @return the number of occurrences of the element in this multiset; possibly zero but never * negative */ int count(@CompatibleWith("E") @Nullable Object element); // Bulk Operations /** * Adds a number of occurrences of an element to this multiset. Note that if {@code occurrences ==
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 20.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
* Integer#MAX_VALUE} occurrences of {@code element} in this multiset. */ @CanIgnoreReturnValue @Override public int add(@ParametricNullness E element, int occurrences) { if (occurrences == 0) { return count(element); } checkArgument(occurrences > 0, "occurrences cannot be negative: %s", occurrences); Count frequency = backingMap.get(element); int oldCount;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 19:31:30 GMT 2025 - 10.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
* Integer#MAX_VALUE} occurrences of {@code element} in this multiset. */ @CanIgnoreReturnValue @Override public final int add(@ParametricNullness E element, int occurrences) { if (occurrences == 0) { return count(element); } checkArgument(occurrences > 0, "occurrences cannot be negative: %s", occurrences); int entryIndex = backingMap.indexOf(element);Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Fri Dec 05 23:15:58 GMT 2025 - 7.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
} /** * Removes a number of occurrences of the specified element from this multiset. If the multiset * contains fewer than this number of occurrences to begin with, all occurrences will be removed. * * @param element the element whose occurrences should be removed * @param occurrences the number of occurrences of the element to remove * @return the count of the element before the operation; possibly zero
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Dec 08 22:42:14 GMT 2025 - 22.3K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java
System.out.println(); } } static class StringStats { private long occurrences = 0; public void recordOccurrence(String value) { occurrences++; } public long getOccurrences() { return occurrences; } } record GroupAnalysis( String name, List<PathAnalysis> paths,
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 13.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java
} @Override public int add(E element, int occurrences) { checkArgument(occurrences >= 0); Integer frequency = backingMap.getOrDefault(element, 0); if (occurrences == 0) { return frequency; } checkArgument(occurrences <= Integer.MAX_VALUE - frequency); backingMap.put(element, frequency + occurrences); return frequency; } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/EnumMultiset.java
@Override public int add(E element, int occurrences) { checkIsE(element); checkNonnegative(occurrences, "occurrences"); if (occurrences == 0) { 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);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 9.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMultiset.java
* @throws IllegalArgumentException if {@code occurrences} is negative, or if this operation * would result in more than {@link Integer#MAX_VALUE} occurrences of the element */ @CanIgnoreReturnValue public Builder<E> addCopies(E element, int occurrences) { contents.add(checkNotNull(element), occurrences); return this; } /**Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 20.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Multisets.java
public int add(@ParametricNullness E element, int occurrences) { checkArgument( predicate.apply(element), "Element %s does not match predicate %s", element, predicate); return unfiltered.add(element, occurrences); } @Override public int remove(@Nullable Object element, int occurrences) { checkNonnegative(occurrences, "occurrences"); if (occurrences == 0) { return count(element);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 41.3K bytes - Click Count (0)