Here you can find the source of isEmpty(Collection col)
Parameter | Description |
---|---|
col | a parameter |
public static boolean isEmpty(Collection col)
//package com.java2s; //License from project: LGPL import java.util.Collection; public class Main { /**/* ww w. j a v a2 s .c om*/ * Returns true if collection is null or empty * @param col * @return */ public static boolean isEmpty(Collection col) { if (col == null) return true; return col.isEmpty(); } }