Code example for LinkedList

Methods: clear

0
        notifyListener(); 
    } 
 
    /** Remove all points. */ 
    public void clear() { 
        points.clear();
        notifyListener(); 
    } 
 
    private void notifyListener() { 
        if (null != pathChangeListener) {
            pathChangeListener.onPathChange(this); 
        } 
    } 
 
    @Override 
    public int describeContents() { 
        // TODO Auto-generated method stub 
        return 0; 
    }