Skip to content

Commit 1ad76b4

Browse files
committed
Javadoc
1 parent e37a425 commit 1ad76b4

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/main/java/org/apache/commons/codec/language/DoubleMetaphone.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ private boolean conditionM0(final String value, final int index) {
324324
}
325325

326326
/**
327-
* Encode a value with Double Metaphone.
327+
* Encodes a value with Double Metaphone.
328328
*
329329
* @param value String to encode
330330
* @return an encoded string
@@ -334,7 +334,7 @@ public String doubleMetaphone(final String value) {
334334
}
335335

336336
/**
337-
* Encode a value with Double Metaphone, optionally using the alternate encoding.
337+
* Encodes a value with Double Metaphone, optionally using the alternate encoding.
338338
*
339339
* @param value String to encode
340340
* @param alternate use alternate encode
@@ -448,7 +448,7 @@ public String doubleMetaphone(String value, final boolean alternate) {
448448
}
449449

450450
/**
451-
* Encode the value using DoubleMetaphone. It will only work if
451+
* Encodes the value using DoubleMetaphone. It will only work if
452452
* {@code obj} is a {@code String} (like {@code Metaphone}).
453453
*
454454
* @param obj Object to encode (should be of type String)
@@ -464,7 +464,7 @@ public Object encode(final Object obj) throws EncoderException {
464464
}
465465

466466
/**
467-
* Encode the value using DoubleMetaphone.
467+
* Encodes the value using DoubleMetaphone.
468468
*
469469
* @param value String to encode
470470
* @return An encoded String
@@ -475,7 +475,8 @@ public String encode(final String value) {
475475
}
476476

477477
/**
478-
* Returns the maxCodeLen.
478+
* Gets the maxCodeLen.
479+
*
479480
* @return int
480481
*/
481482
public int getMaxCodeLen() {
@@ -988,7 +989,7 @@ private int handleZ(final String value, final DoubleMetaphoneResult result, int
988989
}
989990

990991
/**
991-
* Check if the Double Metaphone values of two {@code String} values
992+
* Tests whether the Double Metaphone values of two {@code String} values
992993
* are equal.
993994
*
994995
* @param value1 The left-hand side of the encoded {@link String#equals(Object)}.
@@ -1002,7 +1003,7 @@ public boolean isDoubleMetaphoneEqual(final String value1, final String value2)
10021003
}
10031004

10041005
/**
1005-
* Check if the Double Metaphone values of two {@code String} values
1006+
* Tests whether the Double Metaphone values of two {@code String} values
10061007
* are equal, optionally using the alternate value.
10071008
*
10081009
* @param value1 The left-hand side of the encoded {@link String#equals(Object)}.
@@ -1016,7 +1017,7 @@ public boolean isDoubleMetaphoneEqual(final String value1, final String value2,
10161017
}
10171018

10181019
/**
1019-
* Determines whether or not the value starts with a silent letter. It will
1020+
* Tests whether or not the value starts with a silent letter. It will
10201021
* return {@code true} if the value starts with any of 'GN', 'KN',
10211022
* 'PN', 'WR' or 'PS'.
10221023
*/
@@ -1032,7 +1033,7 @@ private boolean isSilentStart(final String value) {
10321033
}
10331034

10341035
/**
1035-
* Determines whether or not a value is of slavo-germanic origin. A value is
1036+
* Tests whether or not a value is of slavo-germanic origin. A value is
10361037
* of slavo-germanic origin if it contains any of 'W', 'K', 'CZ', or 'WITZ'.
10371038
*/
10381039
private boolean isSlavoGermanic(final String value) {
@@ -1041,14 +1042,15 @@ private boolean isSlavoGermanic(final String value) {
10411042
}
10421043

10431044
/**
1044-
* Determines whether or not a character is a vowel or not
1045+
* Tests whether or not a character is a vowel or not
10451046
*/
10461047
private boolean isVowel(final char ch) {
10471048
return VOWELS.indexOf(ch) != -1;
10481049
}
10491050

10501051
/**
10511052
* Sets the maxCodeLen.
1053+
*
10521054
* @param maxCodeLen The maxCodeLen to set
10531055
*/
10541056
public void setMaxCodeLen(final int maxCodeLen) {

0 commit comments

Comments
 (0)