MCPcopy
hub / github.com/careercup/ctci / get

Method get

java/Chapter 14/Question14_6/CircularArray.java:24–29  ·  view source on GitHub ↗
(int i)

Source from the content-addressed store, hash-verified

22 }
23
24 public T get(int i) {
25 if (i < 0 || i >= items.length) {
26 throw new java.lang.IndexOutOfBoundsException("Index " + i + " is out of bounds");
27 }
28 return items[convert(i)];
29 }
30
31 public void set(int i, T item) {
32 items[convert(i)] = item;

Callers 15

mainMethod · 0.95
mainMethod · 0.45
insertStringMethod · 0.45
searchMethod · 0.45
transformMethod · 0.45
canBuildWordMethod · 0.45
getWordMethod · 0.45
hasCycleMethod · 0.45
getLockMethod · 0.45
sortMethod · 0.45
parseMethod · 0.45

Calls 1

convertMethod · 0.95

Tested by

no test coverage detected