MCPcopy Index your code
hub / github.com/arduino/Arduino / max

Method max

app/src/processing/app/helpers/CircularBuffer.java:53–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51 }
52
53 public double max() {
54 if (size() == 0) {
55 throw new NoSuchElementException();
56 }
57
58 double out = get(0);
59 for (int i = 1; i < size(); ++i) {
60 out = Math.max(out, get(i));
61 }
62
63 return out;
64 }
65
66 public int size() {
67 if (end == -1) {

Callers 5

computeBoundsMethod · 0.45
paintComponentMethod · 0.45
refreshMenuMethod · 0.45
setMenuItemsMethod · 0.45
actionPerformedImplMethod · 0.45

Calls 2

sizeMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected