MCPcopy Create free account
hub / github.com/ReadyTalk/avian / removeFirstOccurrence

Method removeFirstOccurrence

classpath/java/util/LinkedList.java:376–386  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

374 }
375
376 @Override
377 public boolean removeFirstOccurrence(Object o) {
378 int index = indexOf(o);
379 if (index > 0) {
380 remove(index);
381
382 return true;
383 } else {
384 return false;
385 }
386 }
387
388 @Override
389 public boolean removeLastOccurrence(Object o) {

Callers

nothing calls this directly

Calls 2

indexOfMethod · 0.95
removeMethod · 0.95

Tested by

no test coverage detected