Code example for List

Methods: add, contains

0
        return xmlRoot;
    } 
 
    public void registerPackage(String name) {
        name = Package.getPackage(name).getName();
        if (!mPackages.contains(name)) {
            mPackages.add(name);
        } 
    } 
 
    public void removeFactory(Factory<T> factory) {
        mFactoryList.remove(factory);
    } 
 
    @SuppressWarnings("unchecked") 
    private void rInflate(XmlPullParser parser, T parent,
                          final AttributeSet attrs) throws XmlPullParserException,
            IOException { 
        final int depth = parser.getDepth();
        int type;
        while (((type = parser.next()) != XmlPullParser.END_TAG || parser