MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / set

Method set

chapter21/src/main/java/com/seaofnodes/simple/Ary.java:103–108  ·  view source on GitHub ↗

Set existing element @param i element to set @param e value to set @return old value @exception AIOOBE if !(0 <= i < _len)

( int i, E e )

Source from the content-addressed store, hash-verified

101 * @exception AIOOBE if !(0 <= i < _len)
102 */
103 public E set( int i, E e ) {
104 range_check(i);
105 E old = _es[i];
106 _es[i] = e;
107 return old;
108 }
109
110 /** Set existing element
111 * @param i element to set

Callers 4

functionCallMethod · 0.95
findStartMethod · 0.45
delMethod · 0.45
pushMethod · 0.45

Calls 1

range_checkMethod · 0.95

Tested by 1

findStartMethod · 0.36