Prepare the project for javadocs

This commit is contained in:
Gabriele C
2015-11-21 01:27:06 +01:00
parent adcd70b91d
commit 118c79401a
168 changed files with 4375 additions and 422 deletions
@@ -4,6 +4,8 @@ import net.ricecode.similarity.LevenshteinDistanceStrategy;
import net.ricecode.similarity.StringSimilarityService;
import net.ricecode.similarity.StringSimilarityServiceImpl;
/**
*/
public class StringUtils {
/**
@@ -12,8 +14,8 @@ public class StringUtils {
* @param first First string.
* @param second Second string.
*
* @return The difference value.
*/
* @return The difference value. */
public static double getDifference(String first, String second) {
// Make sure the strings are valid.
if(first == null || second == null)
@@ -26,6 +28,12 @@ public class StringUtils {
return Math.abs(service.score(first, second) - 1.0);
}
/**
* Method containsAny.
* @param str String
* @param pieces String[]
* @return boolean
*/
public static boolean containsAny(String str, String... pieces) {
if (str == null) {
return false;