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

Method swap

chapter21/src/main/java/com/seaofnodes/simple/Ary.java:136–144  ·  view source on GitHub ↗
( int i, int j )

Source from the content-addressed store, hash-verified

134 }
135
136 public E swap( int i, int j ) {
137 range_check(i);
138 range_check(j);
139 E tmp = _es[i];
140 if( i==j ) return tmp;
141 _es[i] = _es[j];
142 _es[j] = tmp;
143 return tmp;
144 }
145
146
147 /** @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