@webref intlist:method @brief Return the smallest value
()
| 542 | * @brief Return the smallest value |
| 543 | */ |
| 544 | public long min() { |
| 545 | checkMinMax("min"); |
| 546 | long outgoing = data[0]; |
| 547 | for (int i = 1; i < count; i++) { |
| 548 | if (data[i] < outgoing) outgoing = data[i]; |
| 549 | } |
| 550 | return outgoing; |
| 551 | } |
| 552 | |
| 553 | |
| 554 | // returns the index of the minimum value. |