Java Class to Primitive getWrapperTypeByPrimitive(Class clazz)

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

Description

get Wrapper Type By Primitive

License

Apache License

Declaration

public static Class<?> getWrapperTypeByPrimitive(Class<?> clazz) 

Method Source Code

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

import java.util.*;

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

    public static Class<?> getWrapperTypeByPrimitive(Class<?> clazz) {
        return primitiveWrapperTypeMap.get(clazz);
    }//from www  . j a  v  a2 s.  c  om
}

Related

  1. getPrimitiveClass(String name)
  2. getPrimitiveDftValue(Class clazz)
  3. getPrimitiveTypeByWrapper(Class clazz)
  4. getPrimitiveWrapper(Class c)
  5. getWrapper(String primitiveClassName)
  6. primitiveToWrapper(Class cls)
  7. primitiveToWrapper(Class in)
  8. primitiveToWrapper(final Class p)
  9. toClass(String primitiveName)