[
https://issues.apache.org/jira/browse/LANG-1011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Baker updated LANG-1011:
---------------------------------
Attachment: StringDistanceTest5.java
More fun with functions. :)
With a StringDistance<DISTANCE>, made a StringDistanceFrom class which is set
up with the algorithm and the "left" side string. It can be used to iterate
over a list of "right" side strings and spit out the differences.
> Create a new class StringDistance as host for the getXXDistance methods in
> StringUtils
> --------------------------------------------------------------------------------------
>
> Key: LANG-1011
> URL: https://issues.apache.org/jira/browse/LANG-1011
> Project: Commons Lang
> Issue Type: New Feature
> Components: lang.*
> Reporter: Benedikt Ritter
> Assignee: Benedikt Ritter
> Fix For: 3.4
>
> Attachments: StringDistanceTest4.java, StringDistanceTest4Pre8.java,
> StringDistanceTest5.java
>
>
> We're getting more and more algorithms that calculate distances between
> strings, so it makes sense to create a new class for this kind of logic.
> deprecate getLevenshteinDistance and getJaroWinklerDistance and delegate to
> the new class. If the new class is implemented in 3.4, move getFuzzyDistance
> (is has not yet been released)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)