public final class UtilityFunctions extends Object
| Constructor and Description |
|---|
UtilityFunctions()
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Func1 |
alwaysFalse()
Returns a function that always returns
false.
|
static <T> Func1 |
alwaysTrue()
Returns a function that always returns
true.
|
static <T> Func1 |
identity()
Returns a function that always returns the Object it is passed.
|
static <T0 |
returnNull()
Returns a function that merely returns
null, without side effects.
|
public static <T> Func1<? super T ,Boolean > alwaysTrue()
true.
Func1 that accepts an Object and returns the Boolean
true
public static <T> Func1<? super T ,Boolean > alwaysFalse()
false.
Func1 that accepts an Object and returns the Boolean
false
public static <T> Func1<T ,T> identity()
Func1 that accepts an Object and returns the same Object
public static <T0,T1 ,T2 ,T3 ,T4 ,T5 ,T6 ,T7 ,T8 ,T9 ,R> rx .internal .util .UtilityFunctions .NullFunction <T0 ,T1 ,T2 ,T3 ,T4 ,T5 ,T6 ,T7 ,T8 ,T9 ,R> returnNull()
null, without side effects.
null