| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | NotificationLite.DisposableNotification
Wraps a Disposable. |
| pack-priv static class | NotificationLite.ErrorNotification
Wraps a Throwable. |
| pack-priv static class | NotificationLite.SubscriptionNotification
Wraps a Subscription. |
| Modifier and Type | Field and Description |
|---|---|
| public static final NotificationLite |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the expected value type when unwrapped T> boolean | Returns: true if the notification was a terminal event (i.e., complete or error)the notification object o, Subscriber<? super T> the subscriber to call methods on s)Calls the appropriate Subscriber method based on the type of the notification. |
| public static < the expected value type when unwrapped T> boolean | |
| public static < the expected value type when unwrapped T> boolean | Returns: true if the notification was a terminal event (i.e., complete or error)the notification object o, Subscriber<? super T> the subscriber to call methods on s)Calls the appropriate Subscriber method based on the type of the notification. |
| public static < the expected value type when unwrapped T> boolean | Returns: true if the notification was a terminal event (i.e., complete or error)the notification object o, Observer<? super T> the subscriber to call methods on observer)Calls the appropriate Observer method based on the type of the notification. |
| public static Object | |
| public static Object | Returns: the notification representing the Disposablethe disposable to convert d)Converts a Disposable into a notification value. |
| public static Object | |
| public static Disposable | |
| public static Throwable | |
| public static Subscription | Returns: the extracted Subscriptionthe notification object o)Extracts the Subscription from the notification object. |
| public static < the expected value type when unwrapped T> T | |
| public static boolean | Returns: true if the object represents a complete notificationthe object to check o)Checks if the given object represents a complete notification. |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if the object represents a subscription notificationthe object to check o)Checks if the given object represents a subscription notification. |
| public static < the actual value type T> Object | Returns: the notification representing the valuethe value to convert value)Converts a value into a notification value. |
| public static Object | Returns: the notification representing the Subscriptionthe Subscription to convert s)Converts a Subscription into a notification value. |
| public String | toString()
Overrides java. |
| public static NotificationLite | |
| public static NotificationLite[] |
| COMPLETE | back to summary |
|---|---|
| public static final NotificationLite COMPLETE | |
| NotificationLite | back to summary |
|---|---|
| private NotificationLite() | |
| accept | back to summary |
|---|---|
| public static <T> boolean accept(Object o, Subscriber<? super T> s) Calls the appropriate Subscriber method based on the type of the notification. Does not check for a subscription notification, see
| |
| accept | back to summary |
|---|---|
| public static <T> boolean accept(Object o, Observer<? super T> observer) Calls the appropriate Observer method based on the type of the notification. Does not check for a subscription notification.
| |
| acceptFull | back to summary |
|---|---|
| public static <T> boolean acceptFull(Object o, Subscriber<? super T> s) Calls the appropriate Subscriber method based on the type of the notification.
| |
| acceptFull | back to summary |
|---|---|
| public static <T> boolean acceptFull(Object o, Observer<? super T> observer) Calls the appropriate Observer method based on the type of the notification.
| |
| complete | back to summary |
|---|---|
| public static Object complete() Returns a complete notification.
| |
| disposable | back to summary |
|---|---|
| public static Object disposable(Disposable d) Converts a Disposable into a notification value.
| |
| error | back to summary |
|---|---|
| public static Object error(Throwable e) Converts a Throwable into a notification value. | |
| getDisposable | back to summary |
|---|---|
| public static Disposable getDisposable(Object o) | |
| getError | back to summary |
|---|---|
| public static Throwable getError(Object o) Extracts the Throwable from the notification object. | |
| getSubscription | back to summary |
|---|---|
| public static Subscription getSubscription(Object o) Extracts the Subscription from the notification object.
| |
| getValue | back to summary |
|---|---|
| public static <T> T getValue(Object o) Extracts the value from the notification object.
| |
| isComplete | back to summary |
|---|---|
| public static boolean isComplete(Object o) Checks if the given object represents a complete notification.
| |
| isDisposable | back to summary |
|---|---|
| public static boolean isDisposable(Object o) | |
| isError | back to summary |
|---|---|
| public static boolean isError(Object o) Checks if the given object represents a error notification.
| |
| isSubscription | back to summary |
|---|---|
| public static boolean isSubscription(Object o) Checks if the given object represents a subscription notification.
| |
| next | back to summary |
|---|---|
| public static <T> Object next(T value) Converts a value into a notification value.
| |
| subscription | back to summary |
|---|---|
| public static Object subscription(Subscription s) Converts a Subscription into a notification value.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static NotificationLite valueOf(String name) | |
| values | back to summary |
|---|---|
| public static NotificationLite[] values() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| pack-priv final Disposable |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| upstream | back to summary |
|---|---|
| pack-priv final Disposable upstream | |
| DisposableNotification | back to summary |
|---|---|
| pack-priv DisposableNotification(Disposable d) | |
| 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 |
|---|---|
| pack-priv final Throwable | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public String |
| e | back to summary |
|---|---|
| pack-priv final Throwable e | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ErrorNotification | back to summary |
|---|---|
| pack-priv ErrorNotification(Throwable e) | |
| 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. | |
| 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
| |
| 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 |
|---|---|
| private static final long | |
| pack-priv final Subscription |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| upstream | back to summary |
|---|---|
| pack-priv final Subscription upstream | |
| SubscriptionNotification | back to summary |
|---|---|
| pack-priv SubscriptionNotification(Subscription s) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |