onNext, onError and onComplete and
holds their parameter values (a value, a Throwable, nothing).
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Notification | COMPLETE
The singleton instance for createOnComplete. |
| pack-priv final Object |
| Access | Constructor and Description |
|---|---|
| private | Notification(@Nullable Object
the value to carry around in the notification, not value)nullNot meant to be implemented externally. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the target value type T> @NonNull Notification | Returns: the shared Notification instance representing anonComplete signalReturns the empty and stateless shared instance of a notification representing
an |
| public static < the value type T> @NonNull Notification | Returns: the new Notification instancethe error Throwable to carry around in the notification, not null error)Constructs an onError notification containing the error. |
| public static < the value type T> @NonNull Notification | Returns: the new Notification instancethe value to carry around in the notification, not value)nullConstructs an onNext notification containing the given value. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public @Nullable Throwable | |
| public T | Returns: the value contained or nullReturns the contained value if this notification is an |
| public int | |
| public boolean | Returns: true if this notification is anonComplete signalReturns true if this notification is an |
| public boolean | Returns: true if this notification is anonError signalReturns true if this notification is an |
| public boolean | Returns: true if this notification is anonNext signalReturns true if this notification is an |
| public String |
| COMPLETE | back to summary |
|---|---|
| pack-priv static final Notification<Object> COMPLETE The singleton instance for createOnComplete. | |
| value | back to summary |
|---|---|
| pack-priv final Object value | |
| Notification | back to summary |
|---|---|
| private Notification(@Nullable Object value) Not meant to be implemented externally. | |
| createOnComplete | back to summary |
|---|---|
| public static <T> @NonNull Notification Returns the empty and stateless shared instance of a notification representing
an
| |
| createOnError | back to summary |
|---|---|
| public static <T> @NonNull Notification Constructs an onError notification containing the error.
| |
| createOnNext | back to summary |
|---|---|
| public static <T> @NonNull Notification Constructs an onNext notification containing the given value.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getError | back to summary |
|---|---|
| public @Nullable Throwable getError() Returns the container
| |
| getValue | back to summary |
|---|---|
| public T getValue() Returns the contained value if this notification is an
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isOnComplete | back to summary |
|---|---|
| public boolean isOnComplete() Returns true if this notification is an
| |
| isOnError | back to summary |
|---|---|
| public boolean isOnError() Returns true if this notification is an
| |
| isOnNext | back to summary |
|---|---|
| public boolean isOnNext() Returns true if this notification is an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |