@Test public void testIsNumeric() throws Exception { setConfigurationLocale(Locale.UK); assertThat(Numbers.isNumeric("1")).isTrue(); assertThat(Numbers.isNumeric("-1")).isTrue(); assertThat(Numbers.isNumeric("01")).isTrue(); assertThat(Numbers.isNumeric("-01")).isTrue(); assertThat(Numbers.isNumeric("1.0")).isTrue(); assertThat(Numbers.isNumeric("1,000.01")).isTrue(); assertThat(Numbers.isNumeric("1,00001")).isTrue(); assertThat(Numbers.isNumeric("1,0,0,0,0,1")).isTrue(); setConfigurationLocale(new Locale("ru")); assertThat(Numbers.isNumeric("1")).isTrue(); assertThat(Numbers.isNumeric("-1")).isTrue(); assertThat(Numbers.isNumeric("01")).isTrue(); assertThat(Numbers.isNumeric("-01")).isTrue(); assertThat(Numbers.isNumeric("1,0")).isTrue(); assertThat(Numbers.isNumeric("1 000,01")).isTrue(); assertThat(Numbers.isNumeric("1 00001")).isTrue(); assertThat(Numbers.isNumeric("1 0 0 0 0 1")).isTrue(); }
public static boolean isNumeric(String text) { return isNumeric(text, Configurations.currentConfiguration.getLocale()); }
Numbers { public static boolean isNumeric(String text) { return isNumeric(text, Configurations.currentConfiguration.getLocale()); } }
Numbers { public static boolean isNumeric(String text) { return isNumeric(text, Configurations.currentConfiguration.getLocale()); } private  Numbers(); }
Numbers { public static boolean isNumeric(String text) { return isNumeric(text, Configurations.currentConfiguration.getLocale()); } private  Numbers(); static boolean isNumeric(String text); static boolean isNumeric(String text, Locale locale); static Optional<BigDecimal> parseBigDecimal(String text); static NumberFormatter newEditFormatter(int decimalPlaces, int maxLength); static NumberFormatter newDisplayFormatter(int decimalPlaces, int maxLength); }
Numbers { public static boolean isNumeric(String text) { return isNumeric(text, Configurations.currentConfiguration.getLocale()); } private  Numbers(); static boolean isNumeric(String text); static boolean isNumeric(String text, Locale locale); static Optional<BigDecimal> parseBigDecimal(String text); static NumberFormatter newEditFormatter(int decimalPlaces, int maxLength); static NumberFormatter newDisplayFormatter(int decimalPlaces, int maxLength);  }