Modifier and Type | Field and Description |
---|---|
static int |
COMPARE_EQUALS
comparison operation - record's value corresponding to qualifier's key must be equal to the qualifier's value
|
static int |
COMPARE_GREATER_THAN
comparison operation - record's value corresponding to qualifier's key must be greater than the qualifier's value
|
static int |
COMPARE_GREATER_THAN_OR_EQUALS
comparison operation - record's value corresponding to qualifier's key must be greater than or equal to the qualifier's value
|
static int |
COMPARE_LESS_THAN
comparison operation - record's value corresponding to qualifier's key must be less than the qualifier's value
|
static int |
COMPARE_LESS_THAN_OR_EQUALS
comparison operation - record's value corresponding to qualifier's key must be less than or equal to the qualifier's value
|
Constructor and Description |
---|
KeyValueQualifier(java.lang.String key,
java.lang.Comparable value)
Constructor in which the default comparison operation (equality) is used.
|
KeyValueQualifier(java.lang.String key,
java.lang.Comparable<java.lang.Object> value,
int operation)
Primary Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.Object object)
Determine if the specified object is a match to this qualifier's criteria.
|
java.lang.String |
toString()
Get a string representation of this instance
|
public static final int COMPARE_LESS_THAN
public static final int COMPARE_LESS_THAN_OR_EQUALS
public static final int COMPARE_EQUALS
public static final int COMPARE_GREATER_THAN_OR_EQUALS
public static final int COMPARE_GREATER_THAN
public KeyValueQualifier(java.lang.String key, java.lang.Comparable<java.lang.Object> value, int operation)
key
- the key for which the record's value is fetchedvalue
- the value with which to the compare the record's value for the specified keyoperation
- the code corresponding to the comparison operationpublic KeyValueQualifier(java.lang.String key, java.lang.Comparable value)
key
- the key for which the record's value is fetchedvalue
- the value with which to the compare the record's value for the specified keypublic boolean matches(java.lang.Object object)
_key
must implement the java.util.Comparable interface. See java.util.Comparable for more information.public java.lang.String toString()
toString
in class java.lang.Object