Here you can find the source of isCollection(Class> klass)
Parameter | Description |
---|---|
klass | a parameter |
public static boolean isCollection(Class<?> klass)
//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); } }