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

Method sum

core/src/processing/data/IntDict.java:553–562  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

551
552
553 public int sum() {
554 long amount = sumLong();
555 if (amount > Integer.MAX_VALUE) {
556 throw new RuntimeException("sum() exceeds " + Integer.MAX_VALUE + ", use sumLong()");
557 }
558 if (amount < Integer.MIN_VALUE) {
559 throw new RuntimeException("sum() less than " + Integer.MIN_VALUE + ", use sumLong()");
560 }
561 return (int) amount;
562 }
563
564
565 public long sumLong() {

Callers 1

getPercentMethod · 0.95

Calls 1

sumLongMethod · 0.95

Tested by

no test coverage detected