public enum PredicateOperator extends Enum<PredicateOperator>
Java class for Predicate.Operator.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="Predicate.Operator">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="EQUALS"/>
<enumeration value="NOT_EQUALS"/>
<enumeration value="IN"/>
<enumeration value="NOT_IN"/>
<enumeration value="GREATER_THAN"/>
<enumeration value="GREATER_THAN_EQUALS"/>
<enumeration value="LESS_THAN"/>
<enumeration value="LESS_THAN_EQUALS"/>
<enumeration value="STARTS_WITH"/>
<enumeration value="STARTS_WITH_IGNORE_CASE"/>
<enumeration value="CONTAINS"/>
<enumeration value="CONTAINS_IGNORE_CASE"/>
<enumeration value="DOES_NOT_CONTAIN"/>
<enumeration value="DOES_NOT_CONTAIN_IGNORE_CASE"/>
<enumeration value="CONTAINS_ANY"/>
<enumeration value="CONTAINS_ALL"/>
<enumeration value="CONTAINS_NONE"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CONTAINS
Checks if the field contains the given value as a substring.
|
CONTAINS_ALL
Checks if the field contains all of the given values.
|
CONTAINS_ANY
Checks if the field contains any of the given values.
|
CONTAINS_IGNORE_CASE
Checks if the field contains the given value as a substring, ignoring
case.
|
CONTAINS_NONE
Checks if the field contains none of the given values.
|
DOES_NOT_CONTAIN
Checks if the field does not contain the given value as a substring.
|
DOES_NOT_CONTAIN_IGNORE_CASE
Checks if the field does not contain the given value as a substring,
ignoring case.
|
EQUALS
Checks if the field is equal to the given value.
|
GREATER_THAN
Checks if the field is greater than the given value.
|
GREATER_THAN_EQUALS
Checks if the field is greater or equal to the given value.
|
IN
Checks if the field is equal to one of the given values.
|
LESS_THAN
Checks if the field is less than the given value.
|
LESS_THAN_EQUALS
Checks if the field is less or equal to than the given value.
|
NOT_EQUALS
Checks if the field does not equal the given value.
|
NOT_IN
Checks if the field does not equal any of the given values.
|
STARTS_WITH
Checks if the field starts with the given value.
|
STARTS_WITH_IGNORE_CASE
Checks if the field starts with the given value, ignoring case.
|
UNKNOWN
Used for return value only.
|
| Modifier and Type | Method and Description |
|---|---|
static PredicateOperator |
fromValue(String v) |
String |
value() |
static PredicateOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PredicateOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PredicateOperator EQUALS
This operator is used with integers, dates, booleans, strings, enums, and sets.
public static final PredicateOperator NOT_EQUALS
This operator is used with integers, booleans, strings, enums, and sets.
public static final PredicateOperator IN
This operator accepts multiple operands and is used with integers, booleans, strings, and enums.
public static final PredicateOperator NOT_IN
This operator accepts multiple operands and is used with integers, booleans, strings, and enums.
public static final PredicateOperator GREATER_THAN
This operator is used with numbers and dates.
public static final PredicateOperator GREATER_THAN_EQUALS
This operator is used with numbers and dates.
public static final PredicateOperator LESS_THAN
This operator is used with numbers and dates.
public static final PredicateOperator LESS_THAN_EQUALS
This operator is used with numbers and dates.
public static final PredicateOperator STARTS_WITH
This operator is used with strings.
public static final PredicateOperator STARTS_WITH_IGNORE_CASE
This operator is used with strings.
public static final PredicateOperator CONTAINS
This operator is used with strings.
public static final PredicateOperator CONTAINS_IGNORE_CASE
This operator is used with strings.
public static final PredicateOperator DOES_NOT_CONTAIN
This operator is used with strings.
public static final PredicateOperator DOES_NOT_CONTAIN_IGNORE_CASE
This operator is used with strings.
public static final PredicateOperator CONTAINS_ANY
This operator accepts multiple values and is used on sets of numbers or strings.
public static final PredicateOperator CONTAINS_ALL
This operator accepts multiple values and is used on sets of numbers or strings.
public static final PredicateOperator CONTAINS_NONE
This operator accepts multiple values and is used on sets of numbers or strings.
public static final PredicateOperator UNKNOWN
public static PredicateOperator[] values()
for (PredicateOperator c : PredicateOperator.values()) System.out.println(c);
public static PredicateOperator 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 String value()
public static PredicateOperator fromValue(String v)
Copyright © 2023. All rights reserved.