MCPcopy Create free account
hub / github.com/davidgiven/luje / add

Method add

lib/java/util/AbstractList.java:94–106  ·  view source on GitHub ↗
(E object)

Source from the content-addressed store, hash-verified

92 }
93
94 public void add(E object) {
95 if (expectedModCount != modCount) {
96 throw new ConcurrentModificationException();
97 }
98
99 try {
100 AbstractList.this.add(size() - numLeft, object);
101 expectedModCount = modCount;
102 lastPosition = -1;
103 } catch (IndexOutOfBoundsException e) {
104 throw new NoSuchElementException();
105 }
106 }
107
108 public boolean hasPrevious() {
109 return numLeft < size();

Callers

nothing calls this directly

Calls 2

addMethod · 0.65
sizeMethod · 0.65

Tested by

no test coverage detected