Package de.foellix.aql.helper
Class LevenshteinComparator
java.lang.Object
de.foellix.aql.helper.LevenshteinComparator
- All Implemented Interfaces:
Comparator<Object>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic intcostOfSubstitution(char char1, char char2) static intlevenshteinDistance(String str1, String str2) static intmin(int... numbers) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
LevenshteinComparator
-
LevenshteinComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Object>
-
levenshteinDistance
-
costOfSubstitution
public static int costOfSubstitution(char char1, char char2) -
min
public static int min(int... numbers)
-