org.specs.util.EditDistance.EditMatrix

class EditMatrix

case class EditMatrix(val s1 : String, val s2 : String)

 extends Product


Class encapsulating the functions related to the edit distance of 2 strings


Source: EditDistance.scala(28)

 Constructors

def this(s1 : String, s2 : String)

 Fields

distance def distance
[details]
return
- the edit distance between 2 strings
Int
matrix val matrix Array[Array[Int]]
print def print
prints the edit matrix of 2 strings
EditMatrix
productArity override def productArity Int
productPrefix override def productPrefix String

 Methods

!= final def !=(arg0 : Any) Boolean Any
!= final def !=(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Object) Boolean AnyRef
== final def ==(arg0 : Any) Boolean Any
asInstanceOf final def asInstanceOf[T0] T0 Any
clone protected def clone Object AnyRef
eq final def eq(arg0 : Object) Boolean AnyRef
equals override def equals(arg0 : Any) Boolean
finalize protected def finalize Unit AnyRef
getClass final def getClass Class[Object] AnyRef
hashCode override def hashCode Int
isInstanceOf final def isInstanceOf[T0] Boolean Any
min def min(suppr : Int, subst : Int, ins : => Int) Int
ne final def ne(arg0 : Object) Boolean AnyRef
notify final def notify Unit AnyRef
notifyAll final def notifyAll Unit AnyRef
productElement override def productElement(arg0 : Int) Any
showDistance def showDistance(sep : String)
[details]
param
sep - separators used to hightlight differences. If sep is empty, then no separator is used. If sep contains one character, it is taken as the unique separator. If sep contains 2 or more characters, half of them are taken for the opening separator and the rest for the closing separator.
return
- a (String, String) displaying the differences between each input strings. The used separators are specified by the caller.

(String, String)
showDistance def showDistance
[details]
return
- a (String, String) displaying the differences between each input strings. The used separators are parenthesis: '(' and ')'
(String, String)
synchronized final def synchronized[T0](arg0 : T0) T0 AnyRef
toString override def toString String
wait final def wait(arg0 : Long) Unit AnyRef
wait final def wait Unit AnyRef
wait final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
Copyright (c) 2007-2009. All Rights Reserved.