Code example for List

Methods: remove

0
     * 
     * @param observer observer 
     */ 
    @Implementation 
    public void unregisterDataSetObserver(DataSetObserver observer) {
        dataSetObservers.remove(observer);
    } 
 
    /** 
     * Notifies the registered observers 
     */ 
    @Implementation 
    public void notifyDataSetChanged() { 
        wasNotifyDataSetChangedCalled = true;
        for (DataSetObserver dataSetObserver : dataSetObservers) {
            dataSetObserver.onChanged();
        } 
    } 
 
    /** 
     * Notifies the registered observers