RXMapper<T> Class
- java.
lang. Object - com.
microsoft. azure. management. resources. fluentcore. utils. RXMapper<T>
- com.
Type Parameters
- T
the type to emit as Observable
Implements
public final class RXMapper<T>
implements rx.functions.Func1<java.lang.Object,T>
An internal utility class representing an RX function returning the provided type instance from a call with an arbitrary parameter.
Method Summary
Modifier and Type | Method and Description |
---|---|
T | call(Object t) |
static rx.Observable<T> |
map(Observable<?> fromObservable, T toValue)
Shortcut for mapping the output of an arbitrary observable to one returning an instance of a specific type, using the IO scheduler. |
static rx.Observable<java.lang.Void> |
mapToVoid(Observable<?> fromObservable)
Shortcut for mapping an arbitrary observable to void, using the IO scheduler. |
Methods inherited from java.lang.Object
Method Details
call
public T call(Object t)
Parameters:
map
public static Observable
Shortcut for mapping the output of an arbitrary observable to one returning an instance of a specific type, using the IO scheduler.
Parameters:
Returns:
mapToVoid
public static Observable
Shortcut for mapping an arbitrary observable to void, using the IO scheduler.
Parameters:
Returns: