void setWordAndCandidate ( final String word , final String candidate ) { wordProcessed = word . toCharArray ( ) ; wordLen = wordProcessed . length ; this . candidate = candidate . toCharArray ( ) ; candLen = this . candidate . length ; effectEditDistance = wordLen <= editDistance ? wordLen - 1 : editDistance ; }
Sets up the word and candidate . Used only to test the edit distance in JUnit tests .