Package co.mastermindcms.modules.enums
Enum SearchType
- java.lang.Object
-
- java.lang.Enum<SearchType>
-
- co.mastermindcms.modules.enums.SearchType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SearchType>
public enum SearchType extends java.lang.Enum<SearchType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SEARCH_BY_SELLER
SEARCH_BY_SKU
SEARCH_BY_TERM
SEARCH_BY_TERM_AND_PRODUCT
SEARCH_BY_TYPE
SEARCH_BY_TYPE_AND_SKU
-
Constructor Summary
Constructors Modifier Constructor Description private
SearchType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SearchType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SearchType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEARCH_BY_SKU
public static final SearchType SEARCH_BY_SKU
-
SEARCH_BY_TERM_AND_PRODUCT
public static final SearchType SEARCH_BY_TERM_AND_PRODUCT
-
SEARCH_BY_TERM
public static final SearchType SEARCH_BY_TERM
-
SEARCH_BY_TYPE
public static final SearchType SEARCH_BY_TYPE
-
SEARCH_BY_TYPE_AND_SKU
public static final SearchType SEARCH_BY_TYPE_AND_SKU
-
SEARCH_BY_SELLER
public static final SearchType SEARCH_BY_SELLER
-
-
Method Detail
-
values
public static SearchType[] 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 (SearchType c : SearchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SearchType 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
-
-