Closed vickumar1981 closed 4 years ago
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
src/main/scala/com/github/vickumar1981/stringdistance/package.scala | 1 | 96.88% | ||
<!-- | Total: | 1 | --> |
Totals | |
---|---|
Change from base Build 164: | 0.09% |
Covered Lines: | 274 |
Relevant Lines: | 276 |
ArrayDistance
class to work with a genericArray[T]
All underlying implementations under the
impl
package now use a genericArray[T]
(except for sound/phonetic algorithms, which are specific toString
. TheString
implementations use.toCharArray
to convert the string into an array ofChar
.ArrayDistance
classes are provided for both Scala and Java (under theutil
package).To use a generic class, for Scala and Kotlin, the class will have to be able to use the
==
operator for comparisons. This can be done easily using acase class
or adata class
, respectively. For Java, the class will need to override the.equals
method.Will be included in 1.2.0 release, but will be included in the 1.2.0-SNAPSHOT once merged.