DataType { public static boolean isNumeric(final String type) { if (type.equals(TYPE_NUMERIC)) { return true; } else if (type.equals(TYPE_NUMERIC_BIGDECIMAL)) { return true; } else if (type.equals(TYPE_NUMERIC_BIGINTEGER)) { return true; } else if (type.equals(TYPE_NUMERIC_BYTE)) { return true; } else if (type.equals(TYPE_NUMERIC_DOUBLE)) { return true; } else if (type.equals(TYPE_NUMERIC_FLOAT)) { return true; } else if (type.equals(TYPE_NUMERIC_INTEGER)) { return true; } else if (type.equals(TYPE_NUMERIC_LONG)) { return true; } else if (type.equals(TYPE_NUMERIC_SHORT)) { return true; } return false; }  static boolean isNumeric(final String type); static boolean isDate(final String type); static final String TYPE_COLLECTION; static final String TYPE_COMPARABLE; static final String TYPE_STRING; static final String TYPE_NUMERIC; static final String TYPE_NUMERIC_BIGDECIMAL; static final String TYPE_NUMERIC_BIGINTEGER; static final String TYPE_NUMERIC_BYTE; static final String TYPE_NUMERIC_DOUBLE; static final String TYPE_NUMERIC_FLOAT; static final String TYPE_NUMERIC_INTEGER; static final String TYPE_NUMERIC_LONG; static final String TYPE_NUMERIC_SHORT; static final String TYPE_BOOLEAN; static final String TYPE_DATE; static final String TYPE_LOCAL_DATE; static final String TYPE_OBJECT; static final String TYPE_FINAL_OBJECT; static final String TYPE_THIS; static final String TYPE_VOID; }
@Test public void testIsNumeric() { Assertions.assertThat(DataType.isNumeric(dataType)).isEqualTo(isNumeric); }