public class Func1Comparator<T>
extends java.lang.Object
implements rx.functions.Func1<T,java.lang.Boolean>
Func1 which returns true if input is compareResult than object
// This instance sends true if sent values are GREATER than 0.
new Func1Comparator(comparator, GREATER_THAN, 0);
| Modifier and Type | Field and Description |
|---|---|
static int |
EQUAL |
static int |
GREATER_THAN |
static int |
GREATER_THAN_OR_EQUAL |
static int |
LESS_THAN |
static int |
LESS_THAN_OR_EQUAL |
| Constructor and Description |
|---|
Func1Comparator(java.util.Comparator<T> comparator,
int compareResult,
T object)
Creates an instances which returns true if input is
compareResult than object |
public static final int GREATER_THAN_OR_EQUAL
public static final int GREATER_THAN
public static final int EQUAL
public static final int LESS_THAN
public static final int LESS_THAN_OR_EQUAL
public Func1Comparator(java.util.Comparator<T> comparator, int compareResult, T object)
compareResult than objectcomparator - Comparator used to compare object with any sent inputs.compareResult - Can be any of GREATER_THAN_OR_EQUAL, GREATER_THAN,
EQUAL, LESS_THAN or LESS_THAN_OR_EQUALobject - An instance used to compare sent values.