( int i, int j )
| 119 | } |
| 120 | |
| 121 | public E swap( int i, int j ) { |
| 122 | range_check(i); |
| 123 | range_check(j); |
| 124 | E tmp = _es[i]; |
| 125 | if( i==j ) return tmp; |
| 126 | _es[i] = _es[j]; |
| 127 | _es[j] = tmp; |
| 128 | return tmp; |
| 129 | } |
| 130 | |
| 131 | |
| 132 | /** @param c Collection to be added */ |
no test coverage detected