Code example for CopyOnWriteArrayList

Methods: toArray

0
    public void removeChartTouchListener(ChartTouchListener listener) {
        this.chartMotionListeners.remove(listener);
    } 
 
    public EventListener[] getListeners() {
        return this.chartMotionListeners.toArray(new ChartTouchListener[0]);
    } 
 
    public void repaint() { 
        mHandler.post(new Runnable() {
            public void run() { 
                invalidate();
            } 
        }); 
    } 
     
    @Override 
    public void chartChanged(ChartChangeEvent event) {
        repaint(); 
    }