public final class Functions extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Number> |
add()
Returns a Func2 that adds numbers.
|
static <T> rx.functions.Func1<T,Boolean> |
alwaysFalse() |
static <T,R> rx.functions.Func2<T,R,Boolean> |
alwaysFalse2() |
static <T> rx.functions.Func1<T,Boolean> |
alwaysTrue() |
static <T,R> rx.functions.Func2<T,R,Boolean> |
alwaysTrue2() |
static <T extends Number> |
collectStats() |
static <T,R> rx.functions.Func1<T,R> |
constant(R r) |
static <T> rx.functions.Func0<T> |
constant0(T t) |
static <T> rx.functions.Func1<T,T> |
identity() |
static <T> rx.functions.Func1<T,Boolean> |
isNotNull() |
static <T> rx.functions.Func1<T,Boolean> |
isNull() |
static <T> rx.functions.Func1<T,rx.Observable<T>> |
just() |
static <T> rx.functions.Func1<T,Boolean> |
not(rx.functions.Func1<T,Boolean> f) |
static <T> Comparator<T> |
toComparator(rx.functions.Func2<? super T,? super T,Integer> f) |
static <T> rx.functions.Func0<T> |
toFunc0(Callable<T> f) |
static <T> rx.functions.Func2<T,T,Integer> |
toFunc2(Comparator<? super T> comparator) |
public static <T> rx.functions.Func1<T,T> identity()
public static <T> rx.functions.Func1<T,Boolean> alwaysTrue()
public static <T> rx.functions.Func1<T,Boolean> alwaysFalse()
public static <T,R> rx.functions.Func1<T,R> constant(R r)
public static <T> rx.functions.Func0<T> constant0(T t)
public static <T> rx.functions.Func1<T,rx.Observable<T>> just()
public static <T extends Number> rx.functions.Func2<T,T,T> add()
T
- generic type of Number being addedpublic static <T extends Number> rx.functions.Func2<Statistics,T,Statistics> collectStats()
public static <T> rx.functions.Func2<T,T,Integer> toFunc2(Comparator<? super T> comparator)
public static <T> Comparator<T> toComparator(rx.functions.Func2<? super T,? super T,Integer> f)
public static <T,R> rx.functions.Func2<T,R,Boolean> alwaysTrue2()
public static <T,R> rx.functions.Func2<T,R,Boolean> alwaysFalse2()
public static <T> rx.functions.Func1<T,Boolean> isNull()
public static <T> rx.functions.Func1<T,Boolean> isNotNull()
public static <T> rx.functions.Func0<T> toFunc0(Callable<T> f)
Copyright © 2013–2016. All rights reserved.