Skip to content

Commit 5f7844a

Browse files
committed
Code clean
1 parent 02aa51e commit 5f7844a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/main/java/info/debatty/java/stringsimilarity/CharacterSubstitutionInterface.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,20 @@
2626

2727
/**
2828
* Used to indicate the cost of character substitution.
29-
*
29+
*
3030
* Cost should always be in [0.0 .. 1.0]
3131
* For example, in an OCR application, cost('o', 'a') could be 0.4
3232
* In a checkspelling application, cost('u', 'i') could be 0.4 because these are
3333
* next to each other on the keyboard...
34-
*
34+
*
3535
* @author Thibault Debatty
3636
*/
3737
public interface CharacterSubstitutionInterface {
38-
public double cost(char c1, char c2);
38+
/**
39+
* Indicate the cost of substitution c1 and c2.
40+
* @param c1
41+
* @param c2
42+
* @return
43+
*/
44+
double cost(char c1, char c2);
3945
}

0 commit comments

Comments
 (0)