@ SuppressWarnings ( "unchecked" ) public static < T extends Levenshtein > T damerau ( String baseTarget , String compareTarget ) { return ( T ) new Damerau ( baseTarget ) . update ( compareTarget ) ; }
Returns a new Damerau - Levenshtein distance instance with compare target string