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

Method index

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

Return the first index of a particular value.

(int what)

Source from the content-addressed store, hash-verified

380
381 /** Return the first index of a particular value. */
382 public int index(int what) {
383 for (int i = 0; i < count; i++) {
384 if (data[i] == what) {
385 return i;
386 }
387 }
388 return -1;
389 }
390
391
392 /**

Callers 1

removeValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected