Code example for CopyOnWriteArrayList

Methods: toArray

0
     * @param listenerType  the listener type. 
     * 
     * @return An array of listeners. 
     */ 
    public EventListener[] getListeners() {
        return this.chartMotionListeners.toArray(new ChartTouchListener[0]);
    } 
 
    /** 
     * Schedule a user interface repaint. 
     */ 
    public void repaint() { 
        mHandler.post(new Runnable() {
            public void run() { 
                invalidate();
            } 
        }); 
    } 
     
    /** 
     * Receives notification of changes to the chart, and redraws the chart.