Here you can find the source of isNullOrEmpty(Collection collection)
Parameter | Description |
---|---|
collection | a parameter |
public static boolean isNullOrEmpty(Collection collection)
//package com.java2s; import java.util.Collection; public class Main { /**/*from w w w.j av a2s .co m*/ * * @param collection * @return */ public static boolean isNullOrEmpty(Collection collection) { if (collection == null || collection.isEmpty()) { return true; } return false; } }