Java Collection Count countCollectionsSize(Collection... cols)

Here you can find the source of countCollectionsSize(Collection... cols)

Description

count Collections Size

License

Open Source License

Declaration

public static int countCollectionsSize(Collection... cols) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static int countCollectionsSize(Collection... cols) {
        int totalSize = 0;
        if (cols == null || cols.length < 1)
            return totalSize;
        for (Collection oneList : cols) {
            if (oneList == null)
                continue;
            totalSize += oneList.size();
        }// w  w  w . j  a  v a  2 s .  c o m
        return totalSize;
    }
}

Related

  1. count(Collection ts, T toCount)
  2. count(final Collection collection, final ItemType item)
  3. count(final Collection blocks)
  4. count(T x0, T x1, T x2, Collection sentences)
  5. count(V matching, Collection values)
  6. countComplement(Collection s1, Collection s2)
  7. countDuplicates(Collection items)
  8. countOverlappers(Collection distances)