Enum LikePattern
- java.lang.Object
-
- java.lang.Enum<LikePattern>
-
- app.commerceio.spring.data.search.jpa.LikePattern
-
- All Implemented Interfaces:
Serializable,Comparable<LikePattern>
public enum LikePattern extends Enum<LikePattern>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINSENDS_WITHSTARTS_WITHUNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LikePatternpattern(boolean startsWith, boolean endsWith)static LikePatternvalueOf(String name)Returns the enum constant of this type with the specified name.static LikePattern[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTS_WITH
public static final LikePattern STARTS_WITH
-
ENDS_WITH
public static final LikePattern ENDS_WITH
-
CONTAINS
public static final LikePattern CONTAINS
-
UNKNOWN
public static final LikePattern UNKNOWN
-
-
Method Detail
-
values
public static LikePattern[] 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 (LikePattern c : LikePattern.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LikePattern 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
-
pattern
public static LikePattern pattern(boolean startsWith, boolean endsWith)
-
-