17
17
/**
18
18
* Provides a mechanism for receiving push-based notifications.
19
19
* <p>
20
- * After a MaybeObserver calls a {@link Maybe}'s {@link Single #subscribe subscribe} method,
20
+ * After a MaybeObserver calls a {@link Maybe}'s {@link Maybe #subscribe subscribe} method,
21
21
* first the Maybe calls {@link #onSubscribe(Disposable)} with a {@link Disposable} that allows
22
22
* cancelling the sequence at any time, then the
23
23
* {@code Maybe} calls only one of the MaybeObserver's {@link #onSuccess}, {@link #onError} or
@@ -40,23 +40,23 @@ public interface MaybeObserver<T> {
40
40
void onSubscribe (Disposable d );
41
41
42
42
/**
43
- * Notifies the SingleObserver with a single item and that the {@link Single } has finished sending
43
+ * Notifies the MaybeObserver with one item and that the {@link Maybe } has finished sending
44
44
* push-based notifications.
45
45
* <p>
46
- * The {@link Single } will not call this method if it calls {@link #onError}.
46
+ * The {@link Maybe } will not call this method if it calls {@link #onError}.
47
47
*
48
48
* @param value
49
- * the item emitted by the Single
49
+ * the item emitted by the Maybe
50
50
*/
51
51
void onSuccess (T value );
52
52
53
53
/**
54
- * Notifies the SingleObserver that the {@link Single } has experienced an error condition.
54
+ * Notifies the MaybeObserver that the {@link Maybe } has experienced an error condition.
55
55
* <p>
56
- * If the {@link Single } calls this method, it will not thereafter call {@link #onSuccess}.
56
+ * If the {@link Maybe } calls this method, it will not thereafter call {@link #onSuccess}.
57
57
*
58
58
* @param e
59
- * the exception encountered by the Single
59
+ * the exception encountered by the Maybe
60
60
*/
61
61
void onError (Throwable e );
62
62
0 commit comments