Package rx.internal.util
Class UtilityFunctions
java.lang.Object
rx.internal.util.UtilityFunctions
Utility functions for internal use that we don't want part of the public API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enum
(package private) static enum
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UtilityFunctions
private UtilityFunctions()Utility class.
-
-
Method Details
-
alwaysTrue
Returns a function that always returnstrue
.- Type Parameters:
T
- the value type- Returns:
- a
Func1
that accepts an Object and returns the Booleantrue
-
alwaysFalse
Returns a function that always returnsfalse
.- Type Parameters:
T
- the value type- Returns:
- a
Func1
that accepts an Object and returns the Booleanfalse
-
identity
Returns a function that always returns the Object it is passed.- Type Parameters:
T
- the input and output value type- Returns:
- a
Func1
that accepts an Object and returns the same Object
-