|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.operators.OperationMap
public final class OperationMap
Applies a function of your choosing to every item emitted by an Observable, and returns this transformation as a new Observable.
| Constructor Summary | |
|---|---|
OperationMap()
|
|
| Method Summary | ||
|---|---|---|
static
|
map(Observable<? extends T> sequence,
Func1<? super T,? extends R> func)
Accepts a sequence and a transformation function. |
|
static
|
mapMany(Observable<? extends T> sequence,
Func1<? super T,? extends Observable<? extends R>> func)
Accepts a sequence of observable sequences and a transformation function. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationMap()
| Method Detail |
|---|
public static <T,R> Observable.OnSubscribeFunc<R> map(Observable<? extends T> sequence,
Func1<? super T,? extends R> func)
T - the type of the input sequence.R - the type of the output sequence.sequence - the input sequence.func - a function to apply to each item in the sequence.
public static <T,R> Observable.OnSubscribeFunc<R> mapMany(Observable<? extends T> sequence,
Func1<? super T,? extends Observable<? extends R>> func)
The closure should return an Observable which will then be merged.
T - the type of the input sequence.R - the type of the output sequence.sequence - the input sequence.func - a function to apply to each item in the sequence.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||