示例#1
0
 public static function init()
 {
     self::$PRIMITIVE_WRAPPER_CLASS_TO_PRIMITIVE_CLASS = new HashMap();
     self::$PRIMITIVE_WRAPPER_CLASS_TO_PRIMITIVE_CLASS->put(Boolean::clazz(), Boolean::typeClass());
     self::$PRIMITIVE_WRAPPER_CLASS_TO_PRIMITIVE_CLASS->put(Byte::clazz(), Byte::typeClass());
     self::$PRIMITIVE_WRAPPER_CLASS_TO_PRIMITIVE_CLASS->put(Character::clazz(), Character::typeClass());
     self::$PRIMITIVE_WRAPPER_CLASS_TO_PRIMITIVE_CLASS->put(Float::clazz(), Float::typeClass());
     self::$PRIMITIVE_WRAPPER_CLASS_TO_PRIMITIVE_CLASS->put(Integer::clazz(), Integer::typeClass());
     self::$PRIMITIVE_WRAPPER_CLASS_TO_PRIMITIVE_CLASS->put(Long::clazz(), Long::typeClass());
     self::$PRIMITIVE_WRAPPER_CLASS_TO_PRIMITIVE_CLASS->put(Short::clazz(), Short::typeClass());
     self::$TYPE_NAMES['Z'] = Boolean::typeClass();
     self::$TYPE_NAMES['B'] = Byte::typeClass();
     self::$TYPE_NAMES['C'] = Character::typeClass();
     self::$TYPE_NAMES['D'] = Double::typeClass();
     self::$TYPE_NAMES['F'] = Float::typeClass();
     self::$TYPE_NAMES['I'] = Integer::typeClass();
     self::$TYPE_NAMES['J'] = Long::typeClass();
     self::$TYPE_NAMES['S'] = Short::typeClass();
     self::$serviceToImplementedInterfacesMap = new HashMap();
 }