Package io.ebean.search
Enum MultiMatch.Type
- java.lang.Object
-
- java.lang.Enum<MultiMatch.Type>
-
- io.ebean.search.MultiMatch.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<MultiMatch.Type>
- Enclosing class:
- MultiMatch
public static enum MultiMatch.Type extends Enum<MultiMatch.Type>
The MultiMatch type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEST_FIELDS
CROSS_FIELDS
MOST_FIELDS
PHRASE
PHRASE_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiMatch.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static MultiMatch.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEST_FIELDS
public static final MultiMatch.Type BEST_FIELDS
-
MOST_FIELDS
public static final MultiMatch.Type MOST_FIELDS
-
CROSS_FIELDS
public static final MultiMatch.Type CROSS_FIELDS
-
PHRASE
public static final MultiMatch.Type PHRASE
-
PHRASE_PREFIX
public static final MultiMatch.Type PHRASE_PREFIX
-
-
Method Detail
-
values
public static MultiMatch.Type[] 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 (MultiMatch.Type c : MultiMatch.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiMatch.Type 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
-
-