Code example for ArrayList

Methods: addAllclear

0
 
    /** 
     * Replaces the existing items in the adapter with a given collection 
     */ 
    public void fillWithItems(Collection<FeedItem> items) {
        mItems.clear();
        mItems.addAll(items);
    } 
 
    /** 
     * Appends a given list of FeedItems to the adapter 
     */ 
    public void appendWithItems(Collection<FeedItem> items) {
        mItems.addAll(items);
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE