app/src/main/java/db/juhaku/juhakudb/core/android/EntityConverter.java
/**
     * Get's count of declared fields in in given class.
     *
     * @param type Instance of {@link Class} type of object which declared fields will be counted.
     *
     * @return count of declared fields or 0 if class does not have declared fields.
     *
     * @since 2.0.1
     *
     * @hide
     */
Get's count of declared fields in in given class.
@param type Instance of  Class type of object which declared fields will be counted.

@return count of declared fields or 0 if class does not have declared fields.



@hide
Get ' s count of declared fields in in given class . @param type Instance of Class type of object which declared fields will be counted . @return count of declared fields or 0 if class does not have declared fields . @hide
private static final int countDeclaredFields(Class<?> type) {
        int count = 0;
        for (Field field : type.getDeclaredFields()) {
            field.setAccessible(true);
            if (field.isAnnotationPresent(Transient.class) || hasPrimaryKeyJoin(field)) {
                continue;
            }
            count++;
            field.setAccessible(false); 
        }
        return count;
    }
private static final int countDeclaredFields ( Class < ? > type ) { int count = 0 ; for ( Field field : type . getDeclaredFields ( ) ) { field . setAccessible ( true ) ; if ( field . isAnnotationPresent ( Transient . class ) || hasPrimaryKeyJoin ( field ) ) { continue ; } count ++ ; field . setAccessible ( false ) ; } return count ; }
Get's count of declared fields in in given class.
Get ' s count of declared fields in in given class .
// return the normal state