Observable.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Notification.Kind
Specifies the kind of the notification: an element, an error or a completion notification. |
| Modifier and Type | Field and Description |
|---|---|
| private final Notification. | |
| private static final Notification | |
| private final Throwable | |
| private final T |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public static < the actual value type held by the Notification T> Notification | Returns: anOnCompleted variety of NotificationCreates and returns a |
| public static < the actual value type held by the Notification T> Notification | Returns: anOnCompleted variety of Notificationthe type token to help with type inference of type)<T>
Deprecated
this method does the same as
Creates and returns a createOnCompleted() and does not use the passed in type hence it's useless.
Notification of variety Kind.OnCompleted.
|
| public static < the actual value type held by the Notification T> Notification | Returns: anOnError variety of Notificationthe exception to assign to the notification e)Creates and returns a |
| public static < the actual value type held by the Notification T> Notification | Returns: anOnNext variety of Notificationthe item to assign to the notification as its value t)Creates and returns a |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public Notification. | Returns: the kind of the notification:OnNext, OnError, or OnCompletedRetrieves the kind of this notification: |
| public Throwable | Returns: the Throwable associated with this (onError) notificationRetrieves the exception associated with this (onError) notification. |
| public T | Returns: the item associated with this (onNext) notificationRetrieves the item associated with this (onNext) notification. |
| public int | |
| public boolean | Returns: a boolean indicating whether this notification has an exception associated with itIndicates whether this notification has an exception associated with it. |
| public boolean | Returns: a boolean indicating whether or not this notification has an item associated with itIndicates whether this notification has an item associated with it. |
| public boolean | Returns: a boolean indicating whether this notification represents anonCompleted eventIndicates whether this notification represents an |
| public boolean | Returns: a boolean indicating whether this notification represents anonError eventIndicates whether this notification represents an |
| public boolean | Returns: a boolean indicating whether this notification represents anonNext eventIndicates whether this notification represents an |
| public String |
| kind | back to summary |
|---|---|
| private final Notification. | |
| ON_COMPLETED | back to summary |
|---|---|
| private static final Notification<Void> ON_COMPLETED | |
| throwable | back to summary |
|---|---|
| private final Throwable throwable | |
| value | back to summary |
|---|---|
| private final T value | |
| Notification | back to summary |
|---|---|
| private Notification(Notification. | |
| accept | back to summary |
|---|---|
| public void accept(Observer<? super T> observer) Forwards this notification on to a specified
| |
| createOnCompleted | back to summary |
|---|---|
| public static <T> Notification Creates and returns a
| |
| createOnCompleted | back to summary |
|---|---|
| public static <T> Notification Deprecated this method does the same as Creates and returns a
| |
| createOnError | back to summary |
|---|---|
| public static <T> Notification Creates and returns a
| |
| createOnNext | back to summary |
|---|---|
| public static <T> Notification Creates and returns a
| |
| 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. | |
| getKind | back to summary |
|---|---|
| public Notification. Retrieves the kind of this notification:
| |
| getThrowable | back to summary |
|---|---|
| public Throwable getThrowable() Retrieves the exception associated with this (onError) notification.
| |
| getValue | back to summary |
|---|---|
| public T getValue() Retrieves the item associated with this (onNext) notification.
| |
| 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
| |
| hasThrowable | back to summary |
|---|---|
| public boolean hasThrowable() Indicates whether this notification has an exception associated with it.
| |
| hasValue | back to summary |
|---|---|
| public boolean hasValue() Indicates whether this notification has an item associated with it.
| |
| isOnCompleted | back to summary |
|---|---|
| public boolean isOnCompleted() Indicates whether this notification represents an
| |
| isOnError | back to summary |
|---|---|
| public boolean isOnError() Indicates whether this notification represents an
| |
| isOnNext | back to summary |
|---|---|
| public boolean isOnNext() Indicates whether this notification represents an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Notification. | |
| public static final Notification. | |
| public static final Notification. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Notification. | |
| public static Notification. |
| OnCompleted | back to summary |
|---|---|
| public static final Notification. | |
| OnError | back to summary |
|---|---|
| public static final Notification. | |
| OnNext | back to summary |
|---|---|
| public static final Notification. | |
| Kind | back to summary |
|---|---|
| private Kind() | |
| valueOf | back to summary |
|---|---|
| public static Notification. | |
| values | back to summary |
|---|---|
| public static Notification. | |