TypeInferenceUtils { public static boolean isNumber(String value) { return isDouble(value) || isInteger(value); }  static boolean isDouble(String value); static boolean isInteger(String value); static boolean isNumber(String value); static BigInteger getBigInteger(String value); static boolean isBoolean(String value); static boolean isDate(String value); static boolean isTime(String value); static boolean isEmpty(String value); static boolean isValid(DataTypeEnum type, String value); static DataTypeEnum getDataType(String value); static DataTypeEnum getNativeDataType(String value);  }
@Test public void testIsNumber() { Assert.assertTrue(TypeInferenceUtils.isNumber("1045.35")); Assert.assertTrue(TypeInferenceUtils.isNumber("123")); Assert.assertFalse(TypeInferenceUtils.isNumber("1 045.35")); Assert.assertFalse(TypeInferenceUtils.isNumber("123L")); }