Here you can find the source of isEmpty(Collection> c)
Parameter | Description |
---|---|
c | a parameter |
public static final boolean isEmpty(Collection<?> c)
//package com.java2s; import java.util.Collection; public class Main { /**//from w w w . ja v a2 s . c o m * Checks if collection is empty. Null references are considered to be empty collections. * @param c * @return true if collection is empty */ public static final boolean isEmpty(Collection<?> c) { return c == null || c.isEmpty(); } }