Package com.tapkey.mobile.utils
Interface Observable<T>
-
- Type Parameters:
T
- the type of the object to observe
public interface Observable<T>
Represents an observable object with a given type. The observable can be observed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObserverRegistration
addObserver(Action1<T,? extends RuntimeException> observer)
Adds an observer to the set of observers for this object.
-
-
-
Method Detail
-
addObserver
ObserverRegistration addObserver(Action1<T,? extends RuntimeException> observer)
Adds an observer to the set of observers for this object.- Parameters:
observer
- the observer to add for this object.- Returns:
- the ObserverRegistration that represents the registration on the Observable
-
-