Java Collection Empty isEmpty(Collection list)

Here you can find the source of isEmpty(Collection list)

Description

is Empty

License

Apache License

Declaration

@SuppressWarnings("rawtypes")
    public static boolean isEmpty(Collection list) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Collection;

public class Main {
    @SuppressWarnings("rawtypes")
    public static boolean isEmpty(Collection list) {
        return (list == null || list.size() == 0);
    }//from ww  w .  j  a v  a  2  s .  c  o  m

    public static boolean isEmpty(Object[] pListIds) {
        if (pListIds == null)
            return false;
        return pListIds.length == 0;
    }
}

Related

  1. isEmpty(Collection collection)
  2. isEmpty(Collection collection)
  3. isEmpty(Collection collection)
  4. isEmpty(Collection collection)
  5. isEmpty(Collection items)
  6. isEmpty(Collection v)
  7. isEmpty(Collection col)
  8. isEmpty(Collection c)
  9. isEmpty(Collection c)