- All Implemented Interfaces:
Serializable,Comparable<ComparisonType>,java.lang.constant.Constable
The type of field comparisons supported by the matching operators.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSimple substring comparisonString comparison using the Damerau-Levenshtein algorithmSimple string comparisionString comparison using the Jaro algorithmString comparison using the Jaro-Winkler algorithmString comparison using Levenshtein distanceString comparison using position Q-gramsString comparison using Q-gramsString comparision based on shorthand -
Method Summary
Modifier and TypeMethodDescriptionGets the abbreviation used for the comparison type.Gets a user-friendly name of the comparison type.Gets the definitions for the comparison's required properties.booleanIndicates whether the comparison requires additional properties.toString()static ComparisonTypeReturns the enum constant of this class with the specified name.static ComparisonType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTAINS
Simple substring comparison -
DAMERAU_LEVENSHTEIN
String comparison using the Damerau-Levenshtein algorithm -
EXACT_MATCH
Simple string comparision -
JARO
String comparison using the Jaro algorithm -
JARO_WINKLER
String comparison using the Jaro-Winkler algorithm -
LEVENSHTEIN
String comparison using Levenshtein distance -
QGRAM
String comparison using Q-grams -
POSITIONAL_QGRAM
String comparison using position Q-grams -
SHORTHAND
String comparision based on shorthand
-
-
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
-
hasProperties
public boolean hasProperties()Indicates whether the comparison requires additional properties.- Returns:
trueif additional properties are required,falseotherwise
-
getDisplayName
Gets a user-friendly name of the comparison type.- Returns:
- the name of the comparison for display purposes
-
getAbbreviation
Gets the abbreviation used for the comparison type.- Returns:
- the short-form identifier for the comparison
-
getPropertyDefinitions
Gets the definitions for the comparison's required properties.- Returns:
- the property definitions. If there
are no required properties,
null.
-
toString
- Overrides:
toStringin classEnum<ComparisonType>
-