MCPcopy Create free account
hub / github.com/antlr/codebuff / remove

Method remove

output/java_guava/1.4.17/Multisets.java:359–367  ·  view source on GitHub ↗
(@Nullable Object element, int occurrences)

Source from the content-addressed store, hash-verified

357 }
358
359 @Override
360 public int remove(@Nullable Object element, int occurrences) {
361 checkNonnegative(occurrences, "occurrences");
362 if (occurrences == 0) {
363 return count(element);
364 } else {
365 return contains(element) ? unfiltered.remove(element, occurrences) : 0;
366 }
367 }
368
369 @Override
370 public void clear() {

Callers

nothing calls this directly

Calls 4

countMethod · 0.95
containsMethod · 0.65
removeMethod · 0.65
checkNonnegativeMethod · 0.45

Tested by

no test coverage detected