Code example for HashMap

Methods: get, put

0
    public final T createItem(String name, String prefix, AttributeSet attrs)
            throws ClassNotFoundException, InflateException { 
        if (prefix != null) {
            name = prefix + name;
        } 
        Constructor<?> constructor = GenericInflater.sConstructorMap.get(name);
        try { 
            if (constructor == null) {
                if (mClassLoader == null) {
                    mClassLoader = getClassLoader();
                    if (mClassLoader == null) {
                        mClassLoader = mContext.getClassLoader();
                    } 
                } 
                Class<?> clazz = mClassLoader.loadClass(name);
                constructor = findConstructor(clazz);
                GenericInflater.sConstructorMap.put(clazz, constructor);
            } 
            return (T) constructor.newInstance(obtainConstructorArgs(name, attrs,
                    constructor));
        } catch (NoSuchMethodException e) {
            InflateException ie = new InflateException(