MCPcopy
hub / github.com/wangzheng0822/algo / get

Method get

java/05_array/GenericArray.java:38–41  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

36
37 // 获取对应 index 位置的元素
38 public T get(int index) {
39 checkIndex(index);
40 return data[index];
41 }
42
43 // 查看数组是否包含元素e
44 public boolean contains(T e) {

Callers 1

offerMethod · 0.45

Calls 1

checkIndexMethod · 0.95

Tested by

no test coverage detected