@webref intlist:method @brief Return the largest value
()
| 572 | * @brief Return the largest value |
| 573 | */ |
| 574 | public long max() { |
| 575 | checkMinMax("max"); |
| 576 | long outgoing = data[0]; |
| 577 | for (int i = 1; i < count; i++) { |
| 578 | if (data[i] > outgoing) outgoing = data[i]; |
| 579 | } |
| 580 | return outgoing; |
| 581 | } |
| 582 | |
| 583 | |
| 584 | // returns the index of the maximum value. |
nothing calls this directly
no test coverage detected