Java Collection Size size(Collection collection)

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

Description

size

License

Open Source License

Declaration

public static int size(Collection<? extends Object> collection) 

Method Source Code

//package com.java2s;
/**/*from ww w.  j a v  a  2  s.  co  m*/
 * Aptana Studio
 * Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
 * Please see the license.html included with this distribution for details.
 * Any modifications to this file must keep this entire header intact.
 */

import java.util.Collection;

public class Main {
    public static int size(Collection<? extends Object> collection) {
        if (collection == null) {
            return 0;
        }
        return collection.size();
    }
}

Related

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