Java Reflection Primitive isPrimitiveClass(Class cls)

Here you can find the source of isPrimitiveClass(Class cls)

Description

is Primitive Class

License

Open Source License

Declaration

public static boolean isPrimitiveClass(Class<?> cls) 

Method Source Code

//package com.java2s;

import java.util.Map;

public class Main {
    static private Map<Class<?>, Class<?>> primitiveClasses;

    public static boolean isPrimitiveClass(Class<?> cls) {
        return getWrapperClass(cls) != null;
    }/* w w  w  .ja  va2 s .co m*/

    public static Class<?> getWrapperClass(Class<?> primitiveClass) {
        return primitiveClasses.get(primitiveClass);
    }
}

Related

  1. isNumericPrimitive(Class type)
  2. isNumericType(Class aNumberClass)
  3. isPrimitive(Class c)
  4. isPrimitive(Class clazz)
  5. isPrimitiveClass(Class clazz)
  6. isPrimitiveClass(String className)
  7. isPrimitiveClass(String primitiveClassName)
  8. isPrimitiveClassName(String cls)
  9. isPrimitiveOrPrimitiveWrapper(final Class type)