Back to project page sres.
The source code is released under:
Apache License
If you think the Android project sres 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 me.tatarka.sres; /*from ww w . ja v a 2 s. c o m*/ /** * An interface for something that can be tracked. When a trackable changes, it will notify all * listeners. */ public interface Trackable { /** * Add a listener to the property. The listener is notified when the property's value has * changed. * * @param listener the listener to add */ void addListener(Listener listener); /** * Remove a listener from the property. * * @param listener the listener to remove */ void removeListener(Listener listener); /** * The listener that will be called when the trackable changes. */ public interface Listener { /** * Called when the trackable changes */ void onChange(); } }