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

Method hasValue

core/src/processing/data/DoubleList.java:476–491  ·  view source on GitHub ↗

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

(double value)

Source from the content-addressed store, hash-verified

474 * @brief Check if a number is a part of the list
475 */
476 public boolean hasValue(double value) {
477 if (Double.isNaN(value)) {
478 for (int i = 0; i < count; i++) {
479 if (Double.isNaN(data[i])) {
480 return true;
481 }
482 }
483 } else {
484 for (int i = 0; i < count; i++) {
485 if (data[i] == value) {
486 return true;
487 }
488 }
489 }
490 return false;
491 }
492
493
494 private void boundsProblem(int index, String method) {

Callers 1

appendUniqueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected