Package org.primefaces.model
Enum MatchMode
- java.lang.Object
-
- java.lang.Enum<MatchMode>
-
- org.primefaces.model.MatchMode
-
- All Implemented Interfaces:
Serializable
,Comparable<MatchMode>
public enum MatchMode extends Enum<MatchMode>
Built-in filter operators
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINS
ENDS_WITH
EQUALS
EXACT
GLOBAL
GREATER_THAN
GREATER_THAN_EQUALS
IN
LESS_THAN
LESS_THAN_EQUALS
RANGE
STARTS_WITH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MatchMode
of(String operator)
String
operator()
static MatchMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static MatchMode[]
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 MatchMode STARTS_WITH
-
ENDS_WITH
public static final MatchMode ENDS_WITH
-
CONTAINS
public static final MatchMode CONTAINS
-
EXACT
public static final MatchMode EXACT
-
LESS_THAN
public static final MatchMode LESS_THAN
-
LESS_THAN_EQUALS
public static final MatchMode LESS_THAN_EQUALS
-
GREATER_THAN
public static final MatchMode GREATER_THAN
-
GREATER_THAN_EQUALS
public static final MatchMode GREATER_THAN_EQUALS
-
EQUALS
public static final MatchMode EQUALS
-
IN
public static final MatchMode IN
-
RANGE
public static final MatchMode RANGE
-
GLOBAL
public static final MatchMode GLOBAL
-
-
Method Detail
-
values
public static MatchMode[] 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 (MatchMode c : MatchMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatchMode 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
-
operator
public String operator()
-
-