MCPcopy Index your code
hub / github.com/processing/processing / hasValue

Method hasValue

core/src/processing/data/FloatList.java:472–487  ·  view source on GitHub ↗

@webref floatlist:method @brief Check if a number is a part of the list

(float value)

Source from the content-addressed store, hash-verified

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) {

Callers 1

appendUniqueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected