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

Method removeLastOccurrence

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

Source from the content-addressed store, hash-verified

386 }
387
388 @Override
389 public boolean removeLastOccurrence(Object o) {
390 int lastIndex = lastIndexOf(o);
391 if (lastIndex > 0) {
392 remove(lastIndex);
393
394 return true;
395 } else {
396 return false;
397 }
398 }
399
400 private static class Cell<T> {
401 public T value;

Callers

nothing calls this directly

Calls 2

lastIndexOfMethod · 0.95
removeMethod · 0.95

Tested by

no test coverage detected