@webref intlist:method @brief Check if a number is a part of the list
(int value)
| 447 | * @brief Check if a number is a part of the list |
| 448 | */ |
| 449 | public boolean hasValue(int value) { |
| 450 | // if (indexCache == null) { |
| 451 | // cacheIndices(); |
| 452 | // } |
| 453 | // return index(what) != -1; |
| 454 | for (int i = 0; i < count; i++) { |
| 455 | if (data[i] == value) { |
| 456 | return true; |
| 457 | } |
| 458 | } |
| 459 | return false; |
| 460 | } |
| 461 | |
| 462 | /** |
| 463 | * @webref intlist:method |
no outgoing calls
no test coverage detected