| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final T | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Subscriber | |
| public static < the value type T> OperatorSingle | Returns: a singleton instance of an Operator that will emit a single value only unless the stream has zero or more than one element in which case it will emit an error.Returns a singleton instance of OperatorSingle (if the stream is empty or has more than one element an error will be emitted) that is cast to the generic type. |
| defaultValue | back to summary |
|---|---|
| private final T defaultValue | |
| hasDefaultValue | back to summary |
|---|---|
| private final boolean hasDefaultValue | |
| OperatorSingle | back to summary |
|---|---|
| pack-priv OperatorSingle() | |
| OperatorSingle | back to summary |
|---|---|
| public OperatorSingle(T defaultValue) | |
| OperatorSingle | back to summary |
|---|---|
| private OperatorSingle(boolean hasDefaultValue, final T defaultValue) | |
| call | back to summary |
|---|---|
| public Subscriber Implements rx.
| |
| instance | back to summary |
|---|---|
| public static <T> OperatorSingle Returns a singleton instance of OperatorSingle (if the stream is empty or has more than one element an error will be emitted) that is cast to the generic type.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final OperatorSingle |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final OperatorSingle<?> INSTANCE | |
| Holder | back to summary |
|---|---|
| pack-priv Holder() | |
| Modifier and Type | Field and Description |
|---|---|
| private final Subscriber | |
| private final T | |
| private final boolean | |
| private boolean | |
| private boolean | |
| private T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | onCompleted()
Implements rx. Observable has finished sending push-based notifications.
|
| public void | onError(Throwable
the exception encountered by the Observable e)Implements rx. Observable has experienced an error condition.
|
| public void | onNext(T
the item emitted by the Observable value)Implements rx. |
| child | back to summary |
|---|---|
| private final Subscriber<? super T> child | |
| defaultValue | back to summary |
|---|---|
| private final T defaultValue | |
| hasDefaultValue | back to summary |
|---|---|
| private final boolean hasDefaultValue | |
| hasTooManyElements | back to summary |
|---|---|
| private boolean hasTooManyElements | |
| isNonEmpty | back to summary |
|---|---|
| private boolean isNonEmpty | |
| value | back to summary |
|---|---|
| private T value | |
| ParentSubscriber | back to summary |
|---|---|
| pack-priv ParentSubscriber(Subscriber<? super T> child, boolean hasDefaultValue, T defaultValue) | |
| onCompleted | back to summary |
|---|---|
| public void onCompleted() Implements rx. Doc from rx. Notifies the Observer that the
The
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable e) Implements rx. Doc from rx. Notifies the Observer that the
If the | |
| onNext | back to summary |
|---|---|
| public void onNext(T value) Implements rx. Doc from rx. Provides the Observer with a new item to observe.
The
The
| |