Java Collection Empty isEmpty(Collection collection)

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

Description

is Empty

License

Apache License

Declaration

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

Method Source Code

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

import java.util.Collection;

import java.util.Map;

public class Main {

    @SuppressWarnings("rawtypes")
    public static boolean isEmpty(Collection collection) {
        return (collection == null) || collection.isEmpty();
    }//from   w ww  .j  a va  2  s.c  om

    @SuppressWarnings("rawtypes")
    public static boolean isEmpty(Map map) {
        return (map == null) || map.isEmpty();
    }
}

Related

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