Here you can find the source of isMap(Class> o)
public static boolean isMap(Class<?> o)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static boolean isMap(Object o) { return isMap(o.getClass()); }//from w ww. j av a 2s .com public static boolean isMap(Class<?> o) { return Map.class.isAssignableFrom(o); } }