MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / remove

Method remove

JSAT/src/jsat/utils/SimpleList.java:88–97  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

86 }
87
88 @Override
89 public E remove(int index)
90 {
91 if(index >= size())
92 throw new IndexOutOfBoundsException();
93 E removed = (E) source[index];
94 System.arraycopy(source, index+1, source, index, size-index-1);
95 size--;
96 return removed;
97 }
98
99 @Override
100 public E set(int index, E element)

Callers 3

testGetMethod · 0.95
testSizeMethod · 0.95
testSetMethod · 0.95

Calls 1

sizeMethod · 0.95

Tested by 3

testGetMethod · 0.76
testSizeMethod · 0.76
testSetMethod · 0.76