@Test public void testIsNumber() { String number = "53253325"; String notNumber1 = "123 "; String notNumber2 = "123b"; assertTrue(TextUtils.isNumber(number)); assertFalse(TextUtils.isNumber(notNumber1)); assertFalse(TextUtils.isNumber(notNumber2)); }
public static boolean isNumber(String text) { return !NOT_NUMBER_PATTERN.matcher(text).find(); }
TextUtils { public static boolean isNumber(String text) { return !NOT_NUMBER_PATTERN.matcher(text).find(); } }
TextUtils { public static boolean isNumber(String text) { return !NOT_NUMBER_PATTERN.matcher(text).find(); }  }
TextUtils { public static boolean isNumber(String text) { return !NOT_NUMBER_PATTERN.matcher(text).find(); }  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 isNumber(String text) { return !NOT_NUMBER_PATTERN.matcher(text).find(); }  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);  }