Java Reflection Primitive isPrimitive(Class clazz)

Here you can find the source of isPrimitive(Class clazz)

Description

is Primitive

License

Apache License

Declaration

public static boolean isPrimitive(Class clazz) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Map;

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

    public static boolean isPrimitive(Class clazz) {
        return wrappers.containsKey(clazz);
    }//  w w w . ja v a 2s .  com
}

Related

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