Package me.xdrop.fuzzywuzzy
Interface Ratio
-
- All Superinterfaces:
Applicable
- All Known Implementing Classes:
PartialRatio,SimpleRatio
public interface Ratio extends Applicable
Interface for the different ratios
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intapply(java.lang.String s1, java.lang.String s2)Applies the ratio between the two stringsintapply(java.lang.String s1, java.lang.String s2, ToStringFunction<java.lang.String> sp)Applies the ratio between the two strings
-
-
-
Method Detail
-
apply
int apply(java.lang.String s1, java.lang.String s2)Applies the ratio between the two strings- Specified by:
applyin interfaceApplicable- Parameters:
s1- Input strings2- Input string- Returns:
- Integer representing ratio of similarity
-
apply
int apply(java.lang.String s1, java.lang.String s2, ToStringFunction<java.lang.String> sp)Applies the ratio between the two strings- Parameters:
s1- Input strings2- Input stringsp- String processor to pre-process strings before calculating the ratio- Returns:
- Integer representing ratio of similarity
-
-