()
| 513 | // returns the index of the minimum value. |
| 514 | // if there are ties, it returns the first one found. |
| 515 | @SuppressWarnings("unused") |
| 516 | public int minIndex() { |
| 517 | checkMinMax("minIndex"); |
| 518 | int value = data[0]; |
| 519 | int index = 0; |
| 520 | for (int i = 1; i < count; i++) { |
| 521 | if (data[i] < value) { |
| 522 | value = data[i]; |
| 523 | index = i; |
| 524 | } |
| 525 | } |
| 526 | return index; |
| 527 | } |
| 528 | |
| 529 | |
| 530 | /** |
nothing calls this directly
no test coverage detected