Enum StringSearchOperator
- java.lang.Object
-
- java.lang.Enum<StringSearchOperator>
-
- com.devonfw.module.basic.common.api.query.StringSearchOperator
-
- All Implemented Interfaces:
Serializable
,Comparable<StringSearchOperator>
public enum StringSearchOperator extends Enum<StringSearchOperator>
Enum defining available operators for a string search or string comparison.- Since:
- 3.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQ
Matches if strings areequal
.GE
Matches if search value is greater or equal to search hit(s) inlexicographical order
.GT
Matches if search value is greater than search hit(s) inlexicographical order
.LE
Matches if search value is less or equal to search hit(s) inlexicographical order
.LIKE
Matches if search value as pattern matches search hit(s) in LIKE search.LT
Matches if search value is less than search hit(s) inlexicographical order
.NE
Matches if strings are NOTequal
.NOT_LIKE
Matches if search value as pattern does not match search hit(s) in LIKE search.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static StringSearchOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static StringSearchOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQ
public static final StringSearchOperator EQ
Matches if strings areequal
.
-
NE
public static final StringSearchOperator NE
Matches if strings are NOTequal
.
-
LT
public static final StringSearchOperator LT
Matches if search value is less than search hit(s) inlexicographical order
.
-
LE
public static final StringSearchOperator LE
Matches if search value is less or equal to search hit(s) inlexicographical order
.
-
GT
public static final StringSearchOperator GT
Matches if search value is greater than search hit(s) inlexicographical order
.
-
GE
public static final StringSearchOperator GE
Matches if search value is greater or equal to search hit(s) inlexicographical order
.
-
LIKE
public static final StringSearchOperator LIKE
Matches if search value as pattern matches search hit(s) in LIKE search.- See Also:
LikePatternSyntax
-
NOT_LIKE
public static final StringSearchOperator NOT_LIKE
Matches if search value as pattern does not match search hit(s) in LIKE search.- See Also:
LikePatternSyntax
-
-
Method Detail
-
values
public static StringSearchOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StringSearchOperator c : StringSearchOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StringSearchOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<StringSearchOperator>
-
-