Enum SearchOperation
- java.lang.Object
-
- java.lang.Enum<SearchOperation>
-
- ca.corefacility.bioinformatics.irida.repositories.specification.SearchOperation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SearchOperation>
public enum SearchOperation extends java.lang.Enum<SearchOperation>
Search operations available to use in SearchCriteria's
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUAL
GREATER_THAN
GREATER_THAN_EQUAL
IN
LESS_THAN
LESS_THAN_EQUAL
MATCH
MATCH_END
MATCH_IN
MATCH_START
NOT_EQUAL
NOT_IN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchOperation
fromString(java.lang.String operation)
Get a operation from the given string operationjava.lang.String
toString()
static SearchOperation
valueOf(java.lang.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
-
GREATER_THAN
public static final SearchOperation GREATER_THAN
-
LESS_THAN
public static final SearchOperation LESS_THAN
-
GREATER_THAN_EQUAL
public static final SearchOperation GREATER_THAN_EQUAL
-
LESS_THAN_EQUAL
public static final SearchOperation LESS_THAN_EQUAL
-
NOT_EQUAL
public static final SearchOperation NOT_EQUAL
-
EQUAL
public static final SearchOperation EQUAL
-
MATCH
public static final SearchOperation MATCH
-
MATCH_START
public static final SearchOperation MATCH_START
-
MATCH_END
public static final SearchOperation MATCH_END
-
MATCH_IN
public static final SearchOperation MATCH_IN
-
IN
public static final SearchOperation IN
-
NOT_IN
public static final SearchOperation NOT_IN
-
-
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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<SearchOperation>
-
fromString
public static SearchOperation fromString(java.lang.String operation)
Get a operation from the given string operation- Parameters:
operation
- the string to get the operation for- Returns:
- the request SearchOperation
-
-