Package de.cxp.ocs.smartsuggest.spi
Enum Class SuggestConfig.SortStrategy
- All Implemented Interfaces:
Serializable
,Comparable<SuggestConfig.SortStrategy>
,Constable
- Enclosing class:
SuggestConfig
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSuggestions are ordered by their match-group (sharpened, primary, secondary, fuzzy1, fuzzy2, etc).Similar to MatchGroupsSeparated, but "primary" and "secondary" group are considered equal and merged. -
Method Summary
Modifier and TypeMethodDescriptionstatic SuggestConfig.SortStrategy
Returns the enum constant of this class with the specified name.static SuggestConfig.SortStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MatchGroupsSeparated
Suggestions are ordered by their match-group (sharpened, primary, secondary, fuzzy1, fuzzy2, etc). Within each group, matches are ordered according to "best match" (a combination of match-position and weight). -
PrimaryAndSecondaryByWeight
Similar to MatchGroupsSeparated, but "primary" and "secondary" group are considered equal and merged. Within these first match groups, suggestions are only ordered by weight.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-