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

Method remove

classpath/java/util/LinkedList.java:72–86  ·  view source on GitHub ↗
(Cell<T> c)

Source from the content-addressed store, hash-verified

70 }
71
72 private void remove(Cell<T> c) {
73 -- size;
74
75 if (c.prev == null) {
76 front = c.next;
77 } else {
78 c.prev.next = c.next;
79 }
80
81 if (c.next == null) {
82 rear = c.prev;
83 } else {
84 c.next.prev = c.prev;
85 }
86 }
87
88 @Override
89 public int size() {

Callers 6

addAllTestMethod · 0.95
testLinkedListMethod · 0.95
pollFirstMethod · 0.95
pollLastMethod · 0.95
removeFirstOccurrenceMethod · 0.95
removeLastOccurrenceMethod · 0.95

Calls 3

findMethod · 0.95
removeFirstMethod · 0.95
removeMethod · 0.65

Tested by 2

addAllTestMethod · 0.76
testLinkedListMethod · 0.76