Interface Ratio

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int apply​(java.lang.String s1, java.lang.String s2)
      Applies the ratio between the two strings
      int apply​(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:
        apply in interface Applicable
        Parameters:
        s1 - Input string
        s2 - 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 string
        s2 - Input string
        sp - String processor to pre-process strings before calculating the ratio
        Returns:
        Integer representing ratio of similarity