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

Method set

JSAT/src/jsat/utils/IntList.java:63–69  ·  view source on GitHub ↗

Operates exactly as #set(int, java.lang.Integer) @param index the index to set @param element the value to set @return the previous value at the index

(int index, int element)

Source from the content-addressed store, hash-verified

61 * @return the previous value at the index
62 */
63 public int set(int index, int element)
64 {
65 boundsCheck(index);
66 int prev = array[index];
67 array[index] = element;
68 return prev;
69 }
70
71 @Override
72 public Integer set(int index, Integer element)

Callers 5

readCSVMethod · 0.95
resetMethod · 0.45
applyMethod · 0.45
swapMethod · 0.45
consolidateMethod · 0.45

Calls 1

boundsCheckMethod · 0.95

Tested by

no test coverage detected