Java Collection Check isArrayOrCollection(Object paramObj)

Here you can find the source of isArrayOrCollection(Object paramObj)

Description

is Array Or Collection

License

Apache License

Declaration

public static boolean isArrayOrCollection(Object paramObj) 

Method Source Code

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

import java.util.Collection;

public class Main {
    public static boolean isArrayOrCollection(Object paramObj) {
        if (paramObj == null) {
            return false;
        }//from  www .j  a v a2  s .c o m
        if (paramObj instanceof Collection || paramObj.getClass().isArray()) {
            return true;
        }
        return false;
    }
}

Related

  1. isa(Collection> types, Class type)
  2. isACollection(Object input)
  3. isAllFalse(Collection booleans)
  4. isArrayOrCollection(Class clazz)
  5. isArrayOrCollection(Object v)
  6. isArrayOrCollection(String type)
  7. isAssignableFrom(final Collection> classes, final Class objectClass)
  8. isBlank(Collection coll)