Android Utililty Methods Collection Sum

List of utility methods to do Collection Sum

Description

The list of methods to do Collection Sum are organized into topic(s).

Method

intgetIntListSum(Collection c)
get Int List Sum
int sum = 0;
for (Integer i : c) {
    sum += i;
return sum;
LonggetLongListSum(Collection c)
get Long List Sum
Long sum = 0l;
for (Long i : c) {
    sum += i;
return sum;