(int value)
| 246 | // Remove the first instance of a particular value, |
| 247 | // and return the index at which it was found. |
| 248 | @SuppressWarnings("unused") |
| 249 | public int removeValue(int value) { |
| 250 | int index = index(value); |
| 251 | if (index != -1) { |
| 252 | remove(index); |
| 253 | return index; |
| 254 | } |
| 255 | return -1; |
| 256 | } |
| 257 | |
| 258 | |
| 259 | // Remove all instances of a particular value, |