rx.Notification objects for every onNext and
onCompleted.
An object is allocated inside error(Throwable) to wrap the Throwable but this shouldn't
affect performance because exceptions should be exceptionally rare.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Object | |
| private static final Object |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the value type to accept T> boolean | |
| public static Object | Returns: a completion tokenCreates a lite |
| public static Object | |
| public static Throwable | |
| public static < the value type to convert T> T | |
| public static boolean | Returns: true if n represents an onCompleted event; false otherwisethe lite notification n)Indicates whether or not the lite notification represents an |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static < the value type to convert T> Object | Returns: the item, or a null token representing the item if the item isnullthe item emitted to t)onNextCreates a lite |
| ON_COMPLETED_SENTINEL | back to summary |
|---|---|
| private static final Object ON_COMPLETED_SENTINEL | |
| ON_NEXT_NULL_SENTINEL | back to summary |
|---|---|
| private static final Object ON_NEXT_NULL_SENTINEL | |
| NotificationLite | back to summary |
|---|---|
| private NotificationLite() | |
| accept | back to summary |
|---|---|
| public static <T> boolean accept(Observer<? super T> o, Object n) Unwraps the lite notification and calls the appropriate method on the
| |
| completed | back to summary |
|---|---|
| public static Object completed() Creates a lite
| |
| error | back to summary |
|---|---|
| public static Object error(Throwable e) Create a lite | |
| getError | back to summary |
|---|---|
| public static Throwable getError(Object n) Returns the | |
| getValue | back to summary |
|---|---|
| public static <T> T getValue(Object n) Returns the item corresponding to this
| |
| isCompleted | back to summary |
|---|---|
| public static boolean isCompleted(Object n) Indicates whether or not the lite notification represents an
| |
| isError | back to summary |
|---|---|
| public static boolean isError(Object n) Indicates whether or not the lite notification represents an
| |
| isNext | back to summary |
|---|---|
| public static boolean isNext(Object n) Indicates whether or not the lite notification represents an
| |
| isNull | back to summary |
|---|---|
| public static boolean isNull(Object n) Indicates whether or not the lite notification represents a wrapped
| |
| next | back to summary |
|---|---|
| public static <T> Object next(T t) Creates a lite
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Throwable | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| e | back to summary |
|---|---|
| pack-priv final Throwable e | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| OnErrorSentinel | back to summary |
|---|---|
| public OnErrorSentinel(Throwable e) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |