Java Collection Empty isEmptyCollection(Object obj)

Here you can find the source of isEmptyCollection(Object obj)

Description

is Empty Collection

License

Apache License

Declaration

@SuppressWarnings("rawtypes")
    public static boolean isEmptyCollection(Object obj) 

Method Source Code

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

import java.util.Collection;

public class Main {
    @SuppressWarnings("rawtypes")
    public static boolean isEmptyCollection(Object obj) {
        return obj == null || ((Collection) obj).size() == 0;
    }//from ww w  .ja v a2  s . c  o  m
}

Related

  1. isEmpty(final Collection v)
  2. isEmptyCollection(Collection collection)
  3. isEmptyCollection(Collection list)
  4. isEmptyCollection(Collection col)
  5. isEmptyCollection(Collection collection)
  6. isEmptyCollection(Object object)
  7. isEmptyException(Collection collection)
  8. isEmptyNotesField(Collection col)
  9. isEmptyString(Collection theCollection)

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