Share via


RXMapper<T> Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.utils.RXMapper<T>

Type Parameters

T

the type to emit as Observable

Implements

rx.functions.Func1<java.lang.Object,T>

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

call

public T call(Object t)

Parameters:

t

map

public static Observable 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.

Parameters:

fromObservable - the source observable
toValue - the value to emit to the observer

Returns:

an observable emitting the specified value

mapToVoid

public static Observable mapToVoid(Observable fromObservable)

Shortcut for mapping an arbitrary observable to void, using the IO scheduler.

Parameters:

fromObservable - the source observable

Returns:

a void-emitting observable

Applies to