MCPcopy
hub / github.com/arduino/Arduino / min

Method min

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

Source from the content-addressed store, hash-verified

38 }
39
40 public double min() {
41 if (size() == 0) {
42 throw new NoSuchElementException();
43 }
44
45 double out = get(0);
46 for (int i = 1; i < size(); ++i) {
47 out = Math.min(out, get(i));
48 }
49
50 return out;
51 }
52
53 public double max() {
54 if (size() == 0) {

Callers 8

processSerialEventMethod · 0.80
compareMethod · 0.80
expandMethod · 0.80
insertStringMethod · 0.80
computeBoundsMethod · 0.80
refreshMenuMethod · 0.80
setMenuItemsMethod · 0.80
actionPerformedImplMethod · 0.80

Calls 2

sizeMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected