(int value)
| 220 | // Remove the first instance of a particular value, |
| 221 | // and return the index at which it was found. |
| 222 | @SuppressWarnings("unused") |
| 223 | public int removeValue(int value) { |
| 224 | int index = index(value); |
| 225 | if (index != -1) { |
| 226 | remove(index); |
| 227 | return index; |
| 228 | } |
| 229 | return -1; |
| 230 | } |
| 231 | |
| 232 | |
| 233 | // Remove all instances of a particular value, |