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

Method set

chapter24/src/main/java/com/seaofnodes/simple/util/Ary.java:104–109  ·  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

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

Callers 15

functionCallMethod · 0.95
findStartMethod · 0.45
pushMethod · 0.45
delMethod · 0.45
postOrdMethod · 0.45
swapMethod · 0.45
addMethod · 0.45
bodyMethod · 0.45
walkUpMethod · 0.45
walkDownMethod · 0.45
_print0Method · 0.45
setDefMethod · 0.45

Calls 1

range_checkMethod · 0.95

Tested by 1

findStartMethod · 0.36