|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rx.observables.MathObservable<T>
public class MathObservable<T>
Method Summary | ||
---|---|---|
rx.Observable<java.lang.Double> |
averageDouble(rx.functions.Func1<? super T,java.lang.Double> valueExtractor)
Returns an Observable that transforms items emitted by the source Observable into Doubles by using a function you provide and then emits the Double average of the complete sequence of transformed values. |
|
static rx.Observable<java.lang.Double> |
averageDouble(rx.Observable<java.lang.Double> source)
Returns an Observable that emits the average of the Doubles emitted by the source Observable. |
|
rx.Observable<java.lang.Float> |
averageFloat(rx.functions.Func1<? super T,java.lang.Float> valueExtractor)
Returns an Observable that transforms items emitted by the source Observable into Floats by using a function you provide and then emits the Float average of the complete sequence of transformed values. |
|
static rx.Observable<java.lang.Float> |
averageFloat(rx.Observable<java.lang.Float> source)
Returns an Observable that emits the average of the Floats emitted by the source Observable. |
|
rx.Observable<java.lang.Integer> |
averageInteger(rx.functions.Func1<? super T,java.lang.Integer> valueExtractor)
Returns an Observable that transforms items emitted by the source Observable into Integers by using a function you provide and then emits the Integer average of the complete sequence of transformed values. |
|
static rx.Observable<java.lang.Integer> |
averageInteger(rx.Observable<java.lang.Integer> source)
Returns an Observable that emits the average of the Integers emitted by the source Observable. |
|
rx.Observable<java.lang.Long> |
averageLong(rx.functions.Func1<? super T,java.lang.Long> valueExtractor)
Returns an Observable that transforms items emitted by the source Observable into Longs by using a function you provide and then emits the Long average of the complete sequence of transformed values. |
|
static rx.Observable<java.lang.Long> |
averageLong(rx.Observable<java.lang.Long> source)
Returns an Observable that emits the average of the Longs emitted by the source Observable. |
|
static
|
from(rx.Observable<T> o)
|
|
rx.Observable<T> |
max(java.util.Comparator<? super T> comparator)
Returns an Observable that emits the maximum item emitted by the source Observable, according to the specified comparator. |
|
static
|
max(rx.Observable<T> source)
Returns an Observable that emits the single item emitted by the source Observable with the maximum numeric value. |
|
rx.Observable<T> |
min(java.util.Comparator<? super T> comparator)
Returns an Observable that emits the minimum item emitted by the source Observable, according to a specified comparator. |
|
static
|
min(rx.Observable<T> source)
Returns an Observable that emits the single numerically minimum item emitted by the source Observable. |
|
rx.Observable<java.lang.Double> |
sumDouble(rx.functions.Func1<? super T,java.lang.Double> valueExtractor)
Returns an Observable that extracts a Double from each of the items emitted by the source Observable via a function you specify, and then emits the sum of these Doubles. |
|
static rx.Observable<java.lang.Double> |
sumDouble(rx.Observable<java.lang.Double> source)
Returns an Observable that emits the sum of all the Doubles emitted by the source Observable. |
|
rx.Observable<java.lang.Float> |
sumFloat(rx.functions.Func1<? super T,java.lang.Float> valueExtractor)
Returns an Observable that extracts a Float from each of the items emitted by the source Observable via a function you specify, and then emits the sum of these Floats. |
|
static rx.Observable<java.lang.Float> |
sumFloat(rx.Observable<java.lang.Float> source)
Returns an Observable that emits the sum of all the Floats emitted by the source Observable. |
|
rx.Observable<java.lang.Integer> |
sumInteger(rx.functions.Func1<? super T,java.lang.Integer> valueExtractor)
Returns an Observable that extracts an Integer from each of the items emitted by the source Observable via a function you specify, and then emits the sum of these Integers. |
|
static rx.Observable<java.lang.Integer> |
sumInteger(rx.Observable<java.lang.Integer> source)
Returns an Observable that emits the sum of all the Integers emitted by the source Observable. |
|
rx.Observable<java.lang.Long> |
sumLong(rx.functions.Func1<? super T,java.lang.Long> valueExtractor)
Returns an Observable that extracts a Long from each of the items emitted by the source Observable via a function you specify, and then emits the sum of these Longs. |
|
static rx.Observable<java.lang.Long> |
sumLong(rx.Observable<java.lang.Long> source)
Returns an Observable that emits the sum of all the Longs emitted by the source Observable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> MathObservable<T> from(rx.Observable<T> o)
public static final rx.Observable<java.lang.Double> averageDouble(rx.Observable<java.lang.Double> source)
source
- source Observable to compute the average of
public static final rx.Observable<java.lang.Float> averageFloat(rx.Observable<java.lang.Float> source)
source
- source Observable to compute the average of
public static final rx.Observable<java.lang.Integer> averageInteger(rx.Observable<java.lang.Integer> source)
source
- source Observable to compute the average of
java.lang.IllegalArgumentException
- if the source Observable emits no itemspublic static final rx.Observable<java.lang.Long> averageLong(rx.Observable<java.lang.Long> source)
source
- source Observable to compute the average of
public static final <T extends java.lang.Comparable<? super T>> rx.Observable<T> max(rx.Observable<T> source)
source
- an Observable to scan for the maximum emitted item
java.lang.IllegalArgumentException
- if the source is emptypublic static final <T extends java.lang.Comparable<? super T>> rx.Observable<T> min(rx.Observable<T> source)
source
- an Observable to determine the minimum item of
java.lang.IllegalArgumentException
- if the source is emptypublic static final rx.Observable<java.lang.Double> sumDouble(rx.Observable<java.lang.Double> source)
source
- the source Observable to compute the sum of
public static final rx.Observable<java.lang.Float> sumFloat(rx.Observable<java.lang.Float> source)
source
- the source Observable to compute the sum of
public static final rx.Observable<java.lang.Integer> sumInteger(rx.Observable<java.lang.Integer> source)
source
- source Observable to compute the sum of
public static final rx.Observable<java.lang.Long> sumLong(rx.Observable<java.lang.Long> source)
source
- source Observable to compute the sum of
public final rx.Observable<java.lang.Double> averageDouble(rx.functions.Func1<? super T,java.lang.Double> valueExtractor)
valueExtractor
- the function to transform an item emitted by the source Observable into a Double
public final rx.Observable<java.lang.Float> averageFloat(rx.functions.Func1<? super T,java.lang.Float> valueExtractor)
valueExtractor
- the function to transform an item emitted by the source Observable into a Float
public final rx.Observable<java.lang.Integer> averageInteger(rx.functions.Func1<? super T,java.lang.Integer> valueExtractor)
valueExtractor
- the function to transform an item emitted by the source Observable into an Integer
public final rx.Observable<java.lang.Long> averageLong(rx.functions.Func1<? super T,java.lang.Long> valueExtractor)
valueExtractor
- the function to transform an item emitted by the source Observable into a Long
public final rx.Observable<T> max(java.util.Comparator<? super T> comparator)
comparator
- the comparer used to compare items
java.lang.IllegalArgumentException
- if the source is emptypublic final rx.Observable<T> min(java.util.Comparator<? super T> comparator)
comparator
- the comparer used to compare elements
java.lang.IllegalArgumentException
- if the source is emptypublic final rx.Observable<java.lang.Double> sumDouble(rx.functions.Func1<? super T,java.lang.Double> valueExtractor)
valueExtractor
- the function to extract a Double from each item emitted by the source Observable
public final rx.Observable<java.lang.Float> sumFloat(rx.functions.Func1<? super T,java.lang.Float> valueExtractor)
valueExtractor
- the function to extract a Float from each item emitted by the source Observable
public final rx.Observable<java.lang.Integer> sumInteger(rx.functions.Func1<? super T,java.lang.Integer> valueExtractor)
valueExtractor
- the function to extract an Integer from each item emitted by the source Observable
public final rx.Observable<java.lang.Long> sumLong(rx.functions.Func1<? super T,java.lang.Long> valueExtractor)
valueExtractor
- the function to extract a Long from each item emitted by the source Observable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |