Here you can find the source of size(Collection> c)
Parameter | Description |
---|---|
c | a parameter |
public static int size(Collection<?> c)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { /**/*w w w . j ava 2 s . c om*/ * @param c * @return size of {@link c} if c is not {@code null}, 0 otherwise */ public static int size(Collection<?> c) { return c != null ? c.size() : 0; } }