Back to project page android-gskbyte-utils.
The source code is released under:
GNU Lesser General Public License
If you think the Android project android-gskbyte-utils listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.gskbyte.listener; /*from w ww . ja v a 2 s . c o m*/ public interface IListenable<ListenerClass> { /** * Adds a listener, if it's not already added. Before doing it, this method * removes the existing null listener weak references. * @param listener Listener to add * @return true If the listener has been added, false if it was already there. * */ public boolean addListener(ListenerClass listener); /** * Removes the given listener from the list. * @param listener The listener to remove. * @return true if listener was in the list, false otherwise * */ public boolean removeListener(ListenerClass listener); /** Removes all listeners */ public void removeAllListeners(); }