Java Reflection Primitive getPrimitiveClass(String primitiveClassName)

Here you can find the source of getPrimitiveClass(String primitiveClassName)

Description

get Primitive Class

License

Apache License

Declaration

public static Class<?> getPrimitiveClass(String primitiveClassName) 

Method Source Code


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

import java.util.HashMap;

import java.util.Map;

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

    public static Class<?> getPrimitiveClass(String primitiveClassName) {
        return primitiveClasses.get(primitiveClassName);
    }//w  ww  . j  ava 2s. co m
}

Related

  1. getPrimitive(final String classname)
  2. getPrimitiveClass(Class wrapper)
  3. getPrimitiveClass(Class wrapperClazz)
  4. getPrimitiveClass(Class boxedClass)
  5. getPrimitiveClass(String name)
  6. getPrimitiveClass(String primitiveName)
  7. getPrimitiveClassIfWrapper(Class clazz)
  8. getPrimitiveDefault(Class primitiveClazz)
  9. getPrimitivePromotionCost(final Class srcClass, final Class destClass)