Package be.personify.util
Enum SearchOperation
- java.lang.Object
-
- java.lang.Enum<SearchOperation>
-
- be.personify.util.SearchOperation
-
- All Implemented Interfaces:
Serializable,Comparable<SearchOperation>
public enum SearchOperation extends Enum<SearchOperation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINSENDS_WITHEQUALSGREATER_THENGREATER_THEN_OR_EQUALLESS_THENLESS_THEN_EQUALNOT_EQUALSPRESENTSTARTS_WITH
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()intgetParts()static SearchOperationoperationFromString(String s)voidsetCode(String code)voidsetParts(int parts)static SearchOperationvalueOf(String name)Returns the enum constant of this type with the specified name.static SearchOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALS
public static final SearchOperation EQUALS
-
NOT_EQUALS
public static final SearchOperation NOT_EQUALS
-
CONTAINS
public static final SearchOperation CONTAINS
-
STARTS_WITH
public static final SearchOperation STARTS_WITH
-
ENDS_WITH
public static final SearchOperation ENDS_WITH
-
PRESENT
public static final SearchOperation PRESENT
-
GREATER_THEN
public static final SearchOperation GREATER_THEN
-
GREATER_THEN_OR_EQUAL
public static final SearchOperation GREATER_THEN_OR_EQUAL
-
LESS_THEN
public static final SearchOperation LESS_THEN
-
LESS_THEN_EQUAL
public static final SearchOperation LESS_THEN_EQUAL
-
-
Method Detail
-
values
public static SearchOperation[] 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 (SearchOperation c : SearchOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SearchOperation 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
-
operationFromString
public static SearchOperation operationFromString(String s)
-
getCode
public String getCode()
-
setCode
public void setCode(String code)
-
getParts
public int getParts()
-
setParts
public void setParts(int parts)
-
-