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

Method get

classpath/java/util/ArrayList.java:121–127  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

119 }
120
121 public T get(int index) {
122 if (index >= 0 && index < size) {
123 return (T) array[index];
124 } else {
125 throw new IndexOutOfBoundsException(index + " not in [0, " + size + ")");
126 }
127 }
128
129 public T set(int index, T element) {
130 if (index >= 0 && index < size) {

Callers 3

testGrowMethod · 0.95
testRemoveMethod · 0.95
removeMethod · 0.95

Calls

no outgoing calls

Tested by 2

testGrowMethod · 0.76
testRemoveMethod · 0.76