Java Reflection Primitive getWrapperClass(String className)

Here you can find the source of getWrapperClass(String className)

Description

get Wrapper Class

License

Open Source License

Declaration

public static Class<?> getWrapperClass(String className) 

Method Source Code

//package com.java2s;
/*/*from w  ww. j a  v  a 2 s .c  o  m*/
* Copyright 2006-2007 Javector Software LLC
*
* Licensed under the GNU General Public License, Version 2 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.gnu.org/copyleft/gpl.html
*
* THE SOURCE CODE AND ACCOMPANYING FILES ARE PROVIDED WITHOUT ANY WARRANTY,
* WRITTEN OR IMPLIED.
*
* The copyright holder provides this software under other licenses for those
* wishing to include it with products or systems not licensed under the GPL.
* Contact licenses@javector.com for more information.
*/

import java.util.HashMap;

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

    public static Class<?> getWrapperClass(String className) {
        return map.get(className);
    }
}

Related

  1. getWrapper(Class clazz)
  2. getWrapper(Class type)
  3. getWrapper(final Class beanClass)
  4. getWrapperClass(Class clazz)
  5. getWrapperClass(Class primitiveClass)
  6. getWrapperClassForPrimitive(Class primitiveClass)
  7. getWrapperClassIfPrimitive(final Class clazz)
  8. isAJavaPrimitiveArrayClass(final Class type)
  9. isBoxed(Class boxedClass, Class primitiveClass)