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

Method set

chapter18/src/main/java/com/seaofnodes/simple/Ary.java:89–94  ·  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

87 * @exception AIOOBE if !(0 <= i < _len)
88 */
89 public E set( int i, E e ) {
90 range_check(i);
91 E old = _es[i];
92 _es[i] = e;
93 return old;
94 }
95
96 public Ary<E> setLen( int len ) {
97 if( len > _len )

Callers 15

functionCallMethod · 0.95
findStartMethod · 0.45
delMethod · 0.45
postOrdMethod · 0.45
swapMethod · 0.45
addMethod · 0.45
_rpo_cfgMethod · 0.45
_schedEarlyMethod · 0.45
pushMethod · 0.45
walkMethod · 0.45
bodyMethod · 0.45
walkUpMethod · 0.45

Calls 1

range_checkMethod · 0.95

Tested by 1

findStartMethod · 0.36