MCPcopy Index your code
hub / github.com/wangzheng0822/algo / set

Method set

java/05_array/GenericArray.java:32–35  ·  view source on GitHub ↗
(int index, T e)

Source from the content-addressed store, hash-verified

30
31 // 修改 index 位置的元素
32 public void set(int index, T e) {
33 checkIndex(index);
34 data[index] = e;
35 }
36
37 // 获取对应 index 位置的元素
38 public T get(int index) {

Callers

nothing calls this directly

Calls 1

checkIndexMethod · 0.95

Tested by

no test coverage detected