public enum Compare extends Enum<Compare> implements BiPredicate<Object,Object>
Compare is a BiPredicate that determines whether the first argument is ==, !=,
>, >=, <, <= to the second argument.| Enum Constant and Description |
|---|
eq
Evaluates if the first object is equal to the second.
|
gt
Evaluates if the first object is greater than the second.
|
gte
Evaluates if the first object is greater-equal to the second.
|
lt
Evaluates if the first object is less than the second.
|
lte
Evaluates if the first object is less-equal to the second.
|
neq
Evaluates if the first object is not equal to the second.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Compare |
negate()
Produce the opposite representation of the current
Compare enum. |
static Compare |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Compare[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfand, or, testpublic static final Compare eq
Number, NumberHelper
will be used for the comparison, thus enabling the comparison of only values, ignoring the number types.public static final Compare neq
Number, NumberHelper
will be used for the comparison, thus enabling the comparison of only values, ignoring the number types.public static final Compare gt
Number, NumberHelper
will be used for the comparison, thus enabling the comparison of only values, ignoring the number types.public static final Compare gte
Number, NumberHelper
will be used for the comparison, thus enabling the comparison of only values, ignoring the number types.public static final Compare lt
Number, NumberHelper
will be used for the comparison, thus enabling the comparison of only values, ignoring the number types.public static Compare[] values()
for (Compare c : Compare.values()) System.out.println(c);
public static Compare valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract Compare negate()
Compare enum.negate in interface BiPredicate<Object,Object>Copyright © 2013–2018 Apache Software Foundation. All rights reserved.