Here you can find the source of isCollectional(final Class> type)
public static boolean isCollectional(final Class<?> type)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { /**// w w w. ja v a 2s. co m * Indicates whether type represents {@link Collection}-typed values. * * @return */ public static boolean isCollectional(final Class<?> type) { return Collection.class.isAssignableFrom(type); } }