blob: bfcc798bb92f5a8c9591f85ca5125b8faf1b10c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package cgeo.geocaching.utils;
/**
* Observer interface.
* <p/>
* An observer will receive updates about the observed object (implementing the {@link ISubject} interface) through its
* {@link #update(Object)} method.
*
* @param <T>
* the kind of data to observe
*/
public interface IObserver<T> {
/**
* Called when an observed object has updated its data.
*
* @param data
* the updated data
*/
void update(final T data);
}
|