Java Collection Size size(Collection col)

Here you can find the source of size(Collection col)

Description

size

License

Apache License

Declaration

public static int size(Collection<?> col) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Collection;

public class Main {
    public static int size(Collection<?> col) {
        return col == null ? 0 : col.size();
    }/* w ww. ja v a2  s .  c  o  m*/
}

Related

  1. size(Collection collection)
  2. size(Collection... collections)
  3. size(Collection collection)
  4. size(Collection c)
  5. size(Collection c)
  6. size(Collection coll)
  7. size(Collection collection)
  8. size(Collection values)
  9. size(Collection v)