Here you can find the source of isWrapperType(Class> type)
public static boolean isWrapperType(Class<?> type)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { private static final List<Class<?>> WRAPPER_TYPES = new ArrayList<>(); public static boolean isWrapperType(Object type) { return isWrapperType(type.getClass()); }/* w w w . j a va 2 s . com*/ public static boolean isWrapperType(Class<?> type) { return WRAPPER_TYPES.contains(type); } }