Java Class Type Check isCollection(Class cls)

Here you can find the source of isCollection(Class cls)

Description

is Collection

License

Open Source License

Declaration

public static <T> boolean isCollection(Class<T> cls) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static <T> boolean isCollection(Class<T> cls) {
        return Collection.class.isAssignableFrom(cls);
    }//from  ww  w . j a va  2 s . c  o m
}

Related

  1. isAssignable(final Class target, final Class source)
  2. isAssignableFrom(Class clazzA, Class clazzB)
  3. isBasicType(Class clazz)
  4. isClassBelowPackage(Class theClass, List packageList)
  5. isCollection(Class clazz)
  6. isCollectionMapOrArray(Class type)
  7. isComposite(Class cls)
  8. isEmptyCollectionOrMap(Object content, Class type)
  9. isInPrimitiveWrapperType(Class type)