Java Collection Empty isEmpty(Collection c)

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

Description

is Empty

License

Open Source License

Declaration

public static <T> boolean isEmpty(Collection<T> c) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    public static <T> boolean isEmpty(Collection<T> c) {
        for (T t : c) {
            if (t != null) {
                return false;
            }//from   w ww.  ja v a  2s. c om
        }
        return true;
    }
}

Related

  1. isEmpty(Collection value)
  2. isEmpty(Collection values)
  3. isEmpty(Collection c)
  4. isEmpty(Collection data)
  5. isEmpty(Collection objectCollection)
  6. isEmpty(Collection c)
  7. isEmpty(Collection collection)
  8. isEmpty(Collection collection)
  9. isEmpty(Collection collection)

  10. HOME | Copyright © www.java2s.com 2016