List of utility methods to do Collection Sum
int | getIntListSum(Collection get Int List Sum int sum = 0; for (Integer i : c) { sum += i; return sum; |
Long | getLongListSum(Collection get Long List Sum Long sum = 0l; for (Long i : c) { sum += i; return sum; |