MCPcopy Index your code
hub / github.com/benfry/processing4 / max

Method max

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

Return the largest value. @webref intlist:method @webBrief Return the largest value

()

Source from the content-addressed store, hash-verified

534 * @webBrief Return the largest value
535 */
536 public int max() {
537 checkMinMax("max");
538 int outgoing = data[0];
539 for (int i = 1; i < count; i++) {
540 if (data[i] > outgoing) outgoing = data[i];
541 }
542 return outgoing;
543 }
544
545
546 // returns the index of the maximum value.

Callers

nothing calls this directly

Calls 1

checkMinMaxMethod · 0.95

Tested by

no test coverage detected