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

Method hasValue

core/src/processing/data/LongList.java:398–405  ·  view source on GitHub ↗

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

(int value)

Source from the content-addressed store, hash-verified

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

Callers 1

appendUniqueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected