public enum Compare extends Enum<Compare> implements Predicate
| Enum Constant and Description |
|---|
ENDS_WITH |
EQUAL |
GREATER_THAN |
GREATER_THAN_EQUAL |
LESS_THAN |
LESS_THAN_EQUAL |
NOT_EQUAL |
RANGE |
STARTS_WITH |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(Iterable<Property> properties,
Object second,
Collection<PropertyDefinition> propertyDefinitions) |
boolean |
evaluate(Object first,
Object second,
PropertyDefinition propertyDefinition) |
void |
validate(PropertyDefinition propertyDefinition) |
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.
|
public static final Compare EQUAL
public static final Compare NOT_EQUAL
public static final Compare GREATER_THAN
public static final Compare GREATER_THAN_EQUAL
public static final Compare LESS_THAN
public static final Compare LESS_THAN_EQUAL
public static final Compare STARTS_WITH
public static final Compare ENDS_WITH
public static final Compare RANGE
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 boolean evaluate(Iterable<Property> properties, Object second, Collection<PropertyDefinition> propertyDefinitions)
public void validate(PropertyDefinition propertyDefinition)
public boolean evaluate(Object first, Object second, PropertyDefinition propertyDefinition)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.