Java Collection Check isCollection(Class klass)

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

Description

is Collection

License

Apache License

Parameter

Parameter Description
klass a parameter

Declaration

public static boolean isCollection(Class<?> klass) 

Method Source Code

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

import java.util.Collection;

public class Main {
    /**//from  ww w.  j  a v a  2 s  .  c  o  m
     * 
     * @param klass
     * @return
     */
    public static boolean isCollection(Class<?> klass) {
        return Collection.class.isAssignableFrom(klass);
    }
}

Related

  1. isClassCollection(Class type)
  2. isCollection(Class c)
  3. isCollection(Class clazz)
  4. isCollection(Class clazz)
  5. isCollection(Class clazz)
  6. isCollection(Class type)
  7. isCollection(Class clazz)
  8. isCollection(Class fieldClass)
  9. isCollection(final Object collection)