MCPcopy Create free account
hub / github.com/benfry/processing4 / hasValue

Method hasValue

core/src/processing/data/IntList.java:399–406  ·  view source on GitHub ↗

Check if a number is a part of the data structure. @webref intlist:method @webBrief Check if a number is a part of the list

(int value)

Source from the content-addressed store, hash-verified

397 * @webBrief Check if a number is a part of the list
398 */
399 public boolean hasValue(int value) {
400 for (int i = 0; i < count; i++) {
401 if (data[i] == value) {
402 return true;
403 }
404 }
405 return false;
406 }
407
408
409 /**

Callers 2

appendUniqueMethod · 0.95
parseZoomMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected