Java Reflection Primitive isPrimitiveWrapperClass(Class primitiveWrapperClass)

Here you can find the source of isPrimitiveWrapperClass(Class primitiveWrapperClass)

Description

is Primitive Wrapper Class

License

LGPL

Declaration

public static boolean isPrimitiveWrapperClass(Class primitiveWrapperClass) 

Method Source Code

//package com.java2s;
/*/*  w  w w . ja  v a2s .c o  m*/
 * JFox - The most lightweight Java EE Application Server!
 * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
 *
 * JFox is licenced and re-distributable under GNU LGPL.
 */

import java.util.HashMap;

import java.util.Map;

public class Main {
    private static Map<String, Class> primitiveStringToClass = new HashMap<String, Class>();

    public static boolean isPrimitiveWrapperClass(Class primitiveWrapperClass) {
        return primitiveStringToClass.values().contains(primitiveWrapperClass);
    }
}

Related

  1. isPrimitiveWrapper(Class clazz)
  2. isPrimitiveWrapper(Class clazz)
  3. isPrimitiveWrapper(Class klass)
  4. isPrimitiveWrapper(final Class type)
  5. isPrimitiveWrapperArray(Class clazz)
  6. isWrapper(Class clazz)
  7. isWrapper(Class dataType)
  8. isWrapperAndPrimitivePair(Class c1, Class c2)
  9. isWrapperClass(Class clazz)