Here you can find the source of isNullOrEmpty(Collection c)
Parameter | Description |
---|---|
c | a parameter |
public static boolean isNullOrEmpty(Collection c)
//package com.java2s; import java.util.Collection; public class Main { /**/*w w w .ja v a2 s . c om*/ * Indique si une collection est null ou vide. * * @param c * @return boolean */ public static boolean isNullOrEmpty(Collection c) { if (c == null) { return true; } return c.isEmpty(); } }