Java Class to Primitive getPrimitiveDftValue(Class clazz)

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

Description

get Primitive Dft Value

License

Apache License

Declaration

public static Object getPrimitiveDftValue(Class<?> clazz) 

Method Source Code

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

import java.util.*;

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

    public static Object getPrimitiveDftValue(Class<?> clazz) {
        return primitiveTypeDftValueMap.get(clazz);
    }//from  w w w  . ja v  a2  s.  c om
}

Related

  1. getPrimitiveClass(String name)
  2. getPrimitiveTypeByWrapper(Class clazz)
  3. getPrimitiveWrapper(Class c)
  4. getWrapper(String primitiveClassName)
  5. getWrapperTypeByPrimitive(Class clazz)