- Add the Codota plugin to your IDE and get smart completions

private void myMethod () {Gson g =

- new Gson()
- GsonBuilder gsonBuilder;gsonBuilder.create()
- new GsonBuilder().create()
- Smart code suggestions by Codota
}

/** * Calculates the similarity score of objects, where 0.0 implies absolutely no similarity * and 1.0 implies absolute similarity. * * @param first The first string to compare. * @param second The second string to compare. * @return A number between 0.0 and 1.0. */ public double score(String first, String second) { double jaro = super.score(first, second); int cl = commonPrefixLength(first, second); // The Jaro–Winkler distance uses a prefix scale which gives more favorable ratings // to strings that match from the beginning for a set prefix length. double winkler = jaro + (scalingFactor * cl * (1.0 - jaro)); return winkler; }

/** * Calculates the similarity score of objects, where 0.0 implies absolutely no similarity * and 1.0 implies absolute similarity. * * @param first The first string to compare. * @param second The second string to compare. * @return A number between 0.0 and 1.0. */ public double score(String first, String second) { double jaro = super.score(first, second); int cl = commonPrefixLength(first, second); // The Jaro–Winkler distance uses a prefix scale which gives more favorable ratings // to strings that match from the beginning for a set prefix length. double winkler = jaro + (scalingFactor * cl * (1.0 - jaro)); return winkler; }

/** * Calculates the similarity score of objects, where 0.0 implies absolutely no similarity * and 1.0 implies absolute similarity. * * @param first The first string to compare. * @param second The second string to compare. * @return A number between 0.0 and 1.0. */ public double score(String first, String second) { double jaro = super.score(first, second); int cl = commonPrefixLength(first, second); // The Jaro–Winkler distance uses a prefix scale which gives more favorable ratings // to strings that match from the beginning for a set prefix length. double winkler = jaro + (scalingFactor * cl * (1.0 - jaro)); return winkler; }