Enum Class SearchSettings.SearchMode
- All Implemented Interfaces:
Serializable, Comparable<SearchSettings.SearchMode>, Constable
- Enclosing class:
SearchSettings
- Author:
- paul
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if a search mode is at least as thorough as the given one.booleanisAtMost(SearchSettings.SearchMode searchMode) Check if a search mode is at most as thorough as the given one.static SearchSettings.SearchModeReturns the enum constant of this class with the specified name.static SearchSettings.SearchMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXACT
Very fast search mode, designed for exact matching of identifiers, etc. -
FAST
Fast search mode, designed for autocompletion.In this mode, we stop searching as soon as we have enough results to satisfy the request.
-
BALANCED
Normal search mode with trade-offs to make it usable. -
ACCURATE
Prefer correctness to speed.
-
-
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
-
isAtLeast
Check if a search mode is at least as thorough as the given one. -
isAtMost
Check if a search mode is at most as thorough as the given one.
-