void (boolean enabled) { final boolean wasEnabled = myBufferingEnabled; LOG.assertTrue(wasEnabled != enabled); myBufferingEnabled = enabled; for (BufferingStateListener listener : myListeners) { listener.bufferingStateChanged(enabled); } }