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

Method max

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

@webref intlist:method @brief Return the largest value

()

Source from the content-addressed store, hash-verified

572 * @brief Return the largest value
573 */
574 public long max() {
575 checkMinMax("max");
576 long outgoing = data[0];
577 for (int i = 1; i < count; i++) {
578 if (data[i] > outgoing) outgoing = data[i];
579 }
580 return outgoing;
581 }
582
583
584 // returns the index of the maximum value.

Callers

nothing calls this directly

Calls 1

checkMinMaxMethod · 0.95

Tested by

no test coverage detected