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

Method addFirst

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

Source from the content-addressed store, hash-verified

37 }
38
39 private void addFirst(Cell<T> c) {
40 ++ size;
41
42 if (front == null) {
43 front = rear = c;
44 } else {
45 c.next = front;
46 front.prev = c;
47 front = c;
48 }
49 }
50
51 private void addLast(Cell<T> c) {
52 ++ size;

Callers 4

collectTypeVariablesMethod · 0.95
addMethod · 0.95
offerFirstMethod · 0.95
pushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected