( int i, int j )
| 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 */ |
no test coverage detected