MCPcopy Create free account
hub / github.com/antlr/codebuff / sum

Method sum

src/org/antlr/codebuff/misc/BuffUtils.java:90–96  ·  view source on GitHub ↗
(Collection<Integer> data)

Source from the content-addressed store, hash-verified

88 }
89
90 public static int sum(Collection<Integer> data) {
91 int sum = 0;
92 for (int d : data) {
93 sum += d;
94 }
95 return sum;
96 }
97
98 public static float sumFloats(Collection<Float> data) {
99 float sum = 0;

Callers 2

getCategoryRatiosMethod · 0.95
varianceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected