ValueType implements
    Externalizable { public boolean isNumber() { return ( this.simpleType == SimpleValueType.INTEGER || this.simpleType == SimpleValueType.DECIMAL || this.simpleType == SimpleValueType.CHAR || this.simpleType == SimpleValueType.NUMBER ) ; } ValueType(); private  ValueType(final String name,
                      final Class<T> classType,
                      final int simpleType); void readExternal(ObjectInput in); void writeExternal(ObjectOutput out); String getName(); Class<T> getClassType(); int getSimpleType(); static ValueType determineValueType(final Class<?> clazz); static boolean isDateType( Class<?> clazz ); String toString(); int hashCode(); boolean equals(final Object object); boolean isBoolean(); boolean isNumber(); boolean isIntegerNumber(); boolean isFloatNumber(); boolean isChar(); boolean isEvent(); T coerce(Object value); static final ValueType NULL_TYPE; static final ValueType PCHAR_TYPE; static final ValueType PBYTE_TYPE; static final ValueType PSHORT_TYPE; static final ValueType PINTEGER_TYPE; static final ValueType PLONG_TYPE; static final ValueType PFLOAT_TYPE; static final ValueType PDOUBLE_TYPE; static final ValueType PBOOLEAN_TYPE; static final ValueType CHAR_TYPE; static final ValueType BYTE_TYPE; static final ValueType SHORT_TYPE; static final ValueType INTEGER_TYPE; static final ValueType LONG_TYPE; static final ValueType FLOAT_TYPE; static final ValueType DOUBLE_TYPE; static final ValueType BOOLEAN_TYPE; static final ValueType NUMBER_TYPE; static final ValueType BIG_DECIMAL_TYPE; static final ValueType BIG_INTEGER_TYPE; static final ValueType DATE_TYPE; static final ValueType LOCAL_DATE_TYPE; static final ValueType LOCAL_TIME_TYPE; static final ValueType ARRAY_TYPE; static final ValueType STRING_TYPE; static final ValueType OBJECT_TYPE; static final ValueType FACTTEMPLATE_TYPE; static final ValueType EVENT_TYPE; static final ValueType QUERY_TYPE; static final ValueType TRAIT_TYPE; static final ValueType CLASS_TYPE; }
@Test public void testIsNumber() { assertTrue( ValueType.PBYTE_TYPE.isNumber() ); assertTrue( ValueType.PSHORT_TYPE.isNumber() ); assertTrue( ValueType.PINTEGER_TYPE.isNumber() ); assertTrue( ValueType.PLONG_TYPE.isNumber() ); assertTrue( ValueType.PFLOAT_TYPE.isNumber() ); assertTrue( ValueType.PDOUBLE_TYPE.isNumber() ); assertTrue( ValueType.BYTE_TYPE.isNumber() ); assertTrue( ValueType.SHORT_TYPE.isNumber() ); assertTrue( ValueType.INTEGER_TYPE.isNumber() ); assertTrue( ValueType.LONG_TYPE.isNumber() ); assertTrue( ValueType.FLOAT_TYPE.isNumber() ); assertTrue( ValueType.DOUBLE_TYPE.isNumber() ); }