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

Method addLast

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

Source from the content-addressed store, hash-verified

49 }
50
51 private void addLast(Cell<T> c) {
52 ++ size;
53
54 if (front == null) {
55 front = rear = c;
56 } else {
57 c.prev = rear;
58 rear.next = c;
59 rear = c;
60 }
61 }
62
63 private Cell<T> find(Object element) {
64 for (Cell<T> c = front; c != null; c = c.next) {

Callers 2

addMethod · 0.95
offerLastMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected