private void notifyTrackCountChanged() { synchronized (listeners) { Iterator iterator = listeners.iterator(); while (iterator.hasNext()) { ICdPlayerListener listener = (ICdPlayerListener) iterator.next(); listener.trackCountChanged(trackCount); } } }
private void notifyRandomChanged() { synchronized (listeners) { Iterator iterator = listeners.iterator(); while (iterator.hasNext()) { ICdPlayerListener listener = (ICdPlayerListener) iterator.next(); listener.randomChanged(isRandomOn); } } }
private void notifyStopped() { synchronized (listeners) { Iterator iterator = listeners.iterator(); while (iterator.hasNext()) { ICdPlayerListener listener = (ICdPlayerListener) iterator.next(); listener.stopped(); } } }