@Test public void testIsSeparator() { String separator1 = "."; String separator2 = ","; String separator3 = ";"; String notSeparator = ":"; String twoSeparators = ".."; assertTrue(TextUtils.isSeparator(separator1)); assertTrue(TextUtils.isSeparator(separator2)); assertTrue(TextUtils.isSeparator(separator3)); assertFalse(TextUtils.isSeparator(notSeparator)); assertFalse(TextUtils.isSeparator(twoSeparators)); }
public static boolean isSeparator(String text) { return text.equals(".") || text.equals(",") || text.equals(";"); }
TextUtils { public static boolean isSeparator(String text) { return text.equals(".") || text.equals(",") || text.equals(";"); } }
TextUtils { public static boolean isSeparator(String text) { return text.equals(".") || text.equals(",") || text.equals(";"); }  }
TextUtils { public static boolean isSeparator(String text) { return text.equals(".") || text.equals(",") || text.equals(";"); }  static boolean isNumberBetween(String s, int lower, int upper); static String removeOrphantSpaces(String text); static String cleanLigatures(String str); static List<String> tokenize(String text); static int tokLen(String text); static String joinStrings(List<String> strings); static String joinStrings(List<String> strings, char delim); static String joinStrings(String[] strings); static List<String> produceDates(List<String> date); static String getTrueVizPath(String pdfPath); static String getNLMPath(String pdfPath); static boolean isWord(String text); static boolean isNumber(String text); static boolean isOnlyFirstUpperCase(String text); static boolean isAllUpperCase(String text); static boolean isAllLowerCase(String text); static boolean isSeparator(String text); static boolean isNonAlphanumSep(String text); }
TextUtils { public static boolean isSeparator(String text) { return text.equals(".") || text.equals(",") || text.equals(";"); }  static boolean isNumberBetween(String s, int lower, int upper); static String removeOrphantSpaces(String text); static String cleanLigatures(String str); static List<String> tokenize(String text); static int tokLen(String text); static String joinStrings(List<String> strings); static String joinStrings(List<String> strings, char delim); static String joinStrings(String[] strings); static List<String> produceDates(List<String> date); static String getTrueVizPath(String pdfPath); static String getNLMPath(String pdfPath); static boolean isWord(String text); static boolean isNumber(String text); static boolean isOnlyFirstUpperCase(String text); static boolean isAllUpperCase(String text); static boolean isAllLowerCase(String text); static boolean isSeparator(String text); static boolean isNonAlphanumSep(String text);  }