Code example for List

Methods: addAll

0
        mObjects.add(object);
    } 
     
    public void addAll(List<T> objects) {
        if (objects != null) {
            mObjects.addAll(objects);
        } 
    } 
     
    public void addAll(int position, List<T> objects) {
        if (objects != null) {
            mObjects.addAll(position, objects);
        } 
    } 
 
    public List<T> getObjects() {
        return mObjects;
    } 
     
    public void clear() { 
        mObjects.clear();