Java Reflection Primitive isWrapperType(Class type)

Here you can find the source of isWrapperType(Class type)

Description

is Wrapper Type

License

Open Source License

Declaration

public static boolean isWrapperType(Class<?> type) 

Method Source Code

//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);
    }
}

Related

  1. isPrimitiveWrapperClass(Class primitiveWrapperClass)
  2. isWrapper(Class clazz)
  3. isWrapper(Class dataType)
  4. isWrapperAndPrimitivePair(Class c1, Class c2)
  5. isWrapperClass(Class clazz)
  6. matchPrimitive(Class paramType, Object arg)
  7. primitiveArraysForName(String className)
  8. primitiveToWrapper(final Class cls)
  9. primitiveToWrapper(final Class cls)