Java Collection Empty isCollectionEmpty(Collection oneCol)

Here you can find the source of isCollectionEmpty(Collection oneCol)

Description

is Collection Empty

License

Open Source License

Declaration

public static Boolean isCollectionEmpty(Collection oneCol) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static Boolean isCollectionEmpty(Collection oneCol) {
        return (oneCol == null || oneCol.isEmpty() || oneCol.size() < 1);
    }//from  ww w .  jav a2  s. c  om
}

Related

  1. emptyToNull(final Collection value)
  2. getSingletonCollectionOrEmptyIfNull(T o)
  3. isAnyEmpty(Collection... collections)
  4. isCollectionEmpty(Collection collection)
  5. isCollectionEmpty(Collection value)
  6. isCollectionNotEmpty(Collection collection)
  7. isCollectionNullOrEmpty(Collection collection)
  8. isEmpty(Collection c)