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

Method swap

chapter18/src/main/java/com/seaofnodes/simple/Ary.java:106–113  ·  view source on GitHub ↗
( int i, int j )

Source from the content-addressed store, hash-verified

104 }
105
106 public void swap( int i, int j ) {
107 range_check(i);
108 range_check(j);
109 if( i==j ) return;
110 E tmp = _es[i];
111 _es[i] = _es[j];
112 _es[j] = tmp;
113 }
114
115
116 /** @param c Collection to be added */

Callers 2

swap12Method · 0.45
promoteMethod · 0.45

Calls 1

range_checkMethod · 0.95

Tested by

no test coverage detected