| 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 |
| Modifier and Type | Method and Description |
|---|---|
| public static < the target value type T> Notification | Returns: the shared Notification instance representing an onComplete signalReturns the empty and stateless shared instance of a notification representing an onComplete signal. |
| public static < the value type T> 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> Notification | Returns: the new Notification instancethe value to carry around in the notification, not null value)Constructs an onNext notification containing the given value. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public Throwable | Returns: the Throwable error contained or nullReturns the container Throwable error if this notification is an onError signal, null otherwise. |
| public T | Returns: the value contained or nullReturns the contained value if this notification is an onNext signal, null otherwise. |
| public int | |
| public boolean | Returns: true if this notification is an onComplete signalReturns true if this notification is an onComplete signal. |
| public boolean | Returns: true if this notification is an onError signalReturns true if this notification is an onError signal and
|
| public boolean | Returns: true if this notification is an onNext signalReturns true if this notification is an onNext signal and
|
| 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(Object value) Not meant to be implemented externally. | |
| createOnComplete | back to summary |
|---|---|
| public static <T> Notification Returns the empty and stateless shared instance of a notification representing an onComplete signal.
| |
| createOnError | back to summary |
|---|---|
| public static <T> Notification Constructs an onError notification containing the error.
| |
| createOnNext | back to summary |
|---|---|
| public static <T> 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 Throwable getError() Returns the container Throwable error if this notification is an onError signal, null otherwise.
| |
| getValue | back to summary |
|---|---|
| public T getValue() Returns the contained value if this notification is an onNext signal, null otherwise.
| |
| 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 onComplete signal.
| |
| isOnError | back to summary |
|---|---|
| public boolean isOnError() Returns true if this notification is an onError signal and
| |
| isOnNext | back to summary |
|---|---|
| public boolean isOnNext() Returns true if this notification is an onNext signal and
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |