All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rockymadden.stringmetric.package.scala Maven / Gradle / Ivy

The newest version!
package com.rockymadden

package object stringmetric {
	import scala.language.implicitConversions
	import com.rockymadden.stringmetric.Algorithm._
	import com.rockymadden.stringmetric.Metric._

	type CompareTuple[T] = (Array[T], Array[T])
	type MatchTuple[T] = (Array[T], Array[T])

	implicit def stringToCharArray(s: String): Array[Char] =
		s.toCharArray
	implicit def stringAlgorithmToDecoratedStringAlgorithm(sa: StringAlgorithm): StringAlgorithmDecorator =
		new StringAlgorithmDecorator(sa)
	implicit def stringMetricToDecoratedStringMetric[A](sa: StringMetric[A]): StringMetricDecorator[A] =
		new StringMetricDecorator[A](sa)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy