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

Method set

JSAT/src/jsat/utils/SimpleList.java:99–107  ·  view source on GitHub ↗
(int index, E element)

Source from the content-addressed store, hash-verified

97 }
98
99 @Override
100 public E set(int index, E element)
101 {
102 if(index >= size())
103 throw new IndexOutOfBoundsException();
104 E prev = (E) source[index];
105 source[index] = element;
106 return prev;
107 }
108}

Callers 1

testSetMethod · 0.95

Calls 1

sizeMethod · 0.95

Tested by 1

testSetMethod · 0.76