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

Method swap

chapter23/src/main/java/com/seaofnodes/simple/util/Ary.java:137–145  ·  view source on GitHub ↗
( int i, int j )

Source from the content-addressed store, hash-verified

135 }
136
137 public E swap( int i, int j ) {
138 range_check(i);
139 range_check(j);
140 E tmp = _es[i];
141 if( i==j ) return tmp;
142 _es[i] = _es[j];
143 _es[j] = tmp;
144 return tmp;
145 }
146
147
148 /** @param c Collection to be added */

Callers 2

buildCFGMethod · 0.95
basicBlockLayoutMethod · 0.95

Calls 1

range_checkMethod · 0.95

Tested by

no test coverage detected