public boolean isSimpleTypeOrSimpleObject(final Field field){
  Class<?> type=field.getType();
  boolean simpleType=(type.isAssignableFrom(Short.class) || type.isAssignableFrom(Short.TYPE) || type.isAssignableFrom(Integer.class)|| type.isAssignableFrom(Integer.TYPE)|| type.isAssignableFrom(Float.class)|| type.isAssignableFrom(Float.TYPE)|| type.isAssignableFrom(Double.class)|| type.isAssignableFrom(Double.TYPE)|| type.isAssignableFrom(Long.class)|| type.isAssignableFrom(Long.TYPE)|| type.isAssignableFrom(Byte.class)|| type.isAssignableFrom(Byte.TYPE)|| type.isAssignableFrom(Character.class)|| type.isAssignableFrom(Character.TYPE)|| type.isAssignableFrom(Boolean.class)|| type.isAssignableFrom(Boolean.TYPE)|| type.isAssignableFrom(String.class)) || type.isEnum();
  return simpleType;
}

public boolean isSimpleTypeOrSimpleObject ( final Field field ) { Class < ? > type = field . getType ( ) ; boolean simpleType = ( type . isAssignableFrom ( Short . class ) || type . isAssignableFrom ( Short . TYPE ) || type . isAssignableFrom ( Integer . class ) || type . isAssignableFrom ( Integer . TYPE ) || type . isAssignableFrom ( Float . class ) || type . isAssignableFrom ( Float . TYPE ) || type . isAssignableFrom ( Double . class ) || type . isAssignableFrom ( Double . TYPE ) || type . isAssignableFrom ( Long . class ) || type . isAssignableFrom ( Long . TYPE ) || type . isAssignableFrom ( Byte . class ) || type . isAssignableFrom ( Byte . TYPE ) || type . isAssignableFrom ( Character . class ) || type . isAssignableFrom ( Character . TYPE ) || type . isAssignableFrom ( Boolean . class ) || type . isAssignableFrom ( Boolean . TYPE ) || type . isAssignableFrom ( String . class ) ) || type . isEnum ( ) ; return simpleType ; }
checks if the provided field is a simple type field or an object like this .
