@@ -324,7 +324,7 @@ private boolean conditionM0(final String value, final int index) {
324
324
}
325
325
326
326
/**
327
- * Encode a value with Double Metaphone.
327
+ * Encodes a value with Double Metaphone.
328
328
*
329
329
* @param value String to encode
330
330
* @return an encoded string
@@ -334,7 +334,7 @@ public String doubleMetaphone(final String value) {
334
334
}
335
335
336
336
/**
337
- * Encode a value with Double Metaphone, optionally using the alternate encoding.
337
+ * Encodes a value with Double Metaphone, optionally using the alternate encoding.
338
338
*
339
339
* @param value String to encode
340
340
* @param alternate use alternate encode
@@ -448,7 +448,7 @@ public String doubleMetaphone(String value, final boolean alternate) {
448
448
}
449
449
450
450
/**
451
- * Encode the value using DoubleMetaphone. It will only work if
451
+ * Encodes the value using DoubleMetaphone. It will only work if
452
452
* {@code obj} is a {@code String} (like {@code Metaphone}).
453
453
*
454
454
* @param obj Object to encode (should be of type String)
@@ -464,7 +464,7 @@ public Object encode(final Object obj) throws EncoderException {
464
464
}
465
465
466
466
/**
467
- * Encode the value using DoubleMetaphone.
467
+ * Encodes the value using DoubleMetaphone.
468
468
*
469
469
* @param value String to encode
470
470
* @return An encoded String
@@ -475,7 +475,8 @@ public String encode(final String value) {
475
475
}
476
476
477
477
/**
478
- * Returns the maxCodeLen.
478
+ * Gets the maxCodeLen.
479
+ *
479
480
* @return int
480
481
*/
481
482
public int getMaxCodeLen () {
@@ -988,7 +989,7 @@ private int handleZ(final String value, final DoubleMetaphoneResult result, int
988
989
}
989
990
990
991
/**
991
- * Check if the Double Metaphone values of two {@code String} values
992
+ * Tests whether the Double Metaphone values of two {@code String} values
992
993
* are equal.
993
994
*
994
995
* @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)
1002
1003
}
1003
1004
1004
1005
/**
1005
- * Check if the Double Metaphone values of two {@code String} values
1006
+ * Tests whether the Double Metaphone values of two {@code String} values
1006
1007
* are equal, optionally using the alternate value.
1007
1008
*
1008
1009
* @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,
1016
1017
}
1017
1018
1018
1019
/**
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
1020
1021
* return {@code true} if the value starts with any of 'GN', 'KN',
1021
1022
* 'PN', 'WR' or 'PS'.
1022
1023
*/
@@ -1032,7 +1033,7 @@ private boolean isSilentStart(final String value) {
1032
1033
}
1033
1034
1034
1035
/**
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
1036
1037
* of slavo-germanic origin if it contains any of 'W', 'K', 'CZ', or 'WITZ'.
1037
1038
*/
1038
1039
private boolean isSlavoGermanic (final String value ) {
@@ -1041,14 +1042,15 @@ private boolean isSlavoGermanic(final String value) {
1041
1042
}
1042
1043
1043
1044
/**
1044
- * Determines whether or not a character is a vowel or not
1045
+ * Tests whether or not a character is a vowel or not
1045
1046
*/
1046
1047
private boolean isVowel (final char ch ) {
1047
1048
return VOWELS .indexOf (ch ) != -1 ;
1048
1049
}
1049
1050
1050
1051
/**
1051
1052
* Sets the maxCodeLen.
1053
+ *
1052
1054
* @param maxCodeLen The maxCodeLen to set
1053
1055
*/
1054
1056
public void setMaxCodeLen (final int maxCodeLen ) {
0 commit comments