@webref floatlist:method @brief Check if a number is a part of the list
(float value)
| 470 | * @brief Check if a number is a part of the list |
| 471 | */ |
| 472 | public boolean hasValue(float value) { |
| 473 | if (Float.isNaN(value)) { |
| 474 | for (int i = 0; i < count; i++) { |
| 475 | if (Float.isNaN(data[i])) { |
| 476 | return true; |
| 477 | } |
| 478 | } |
| 479 | } else { |
| 480 | for (int i = 0; i < count; i++) { |
| 481 | if (data[i] == value) { |
| 482 | return true; |
| 483 | } |
| 484 | } |
| 485 | } |
| 486 | return false; |
| 487 | } |
| 488 | |
| 489 | |
| 490 | private void boundsProblem(int index, String method) { |