Enum Class FuzzyMatcher.MatchAlgorithm
java.lang.Object
java.lang.Enum<FuzzyMatcher.MatchAlgorithm>
cloud.opencode.base.string.match.FuzzyMatcher.MatchAlgorithm
- All Implemented Interfaces:
Serializable, Comparable<FuzzyMatcher.MatchAlgorithm>, Constable
- Enclosing class:
FuzzyMatcher<T>
Matching algorithm enumeration.
匹配算法枚举。
- Since:
- JDK 25, opencode-base-string V1.2.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCombined algorithm (weighted combination)Contains-based similarityJaro-Winkler similarity (better for typos)Levenshtein distance based similarityPrefix-based similarity -
Method Summary
Modifier and TypeMethodDescriptionstatic FuzzyMatcher.MatchAlgorithmReturns the enum constant of this class with the specified name.static FuzzyMatcher.MatchAlgorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEVENSHTEIN
Levenshtein distance based similarity -
JARO_WINKLER
Jaro-Winkler similarity (better for typos) -
CONTAINS
Contains-based similarity -
PREFIX
Prefix-based similarity -
COMBINED
Combined algorithm (weighted combination)
-
-
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
-