app/src/main/java/db/juhaku/juhakudb/core/android/EntityConverter.java
/**
     * Find existing entity from entities list by id of the entity.
     *
     * @param id Object id value of the entity to look for existing entity.
     * @param entities Collection of entities to look for entity.
     * @return Found entity or null if was not found.
     *
     * @since 1.2.0
     *
     * @hide
     */
Find existing entity from entities list by id of the entity.
@param id Object id value of the entity to look for existing entity.
@param entities Collection of entities to look for entity.
@return Found entity or null if was not found.



@hide
Find existing entity from entities list by id of the entity . @param id Object id value of the entity to look for existing entity . @param entities Collection of entities to look for entity . @return Found entity or null if was not found . @hide
private static <T> T findEntityById(Object id, Collection<T> entities) {
        if (id != null) {
            for (T entity : entities) {
                if (id.equals(ReflectionUtils.getIdFieldValue(entity))) {
                    return entity;
                }
            }
        }
        return null;
    }
private static < T > T findEntityById ( Object id , Collection < T > entities ) { if ( id != null ) { for ( T entity : entities ) { if ( id . equals ( ReflectionUtils . getIdFieldValue ( entity ) ) ) { return entity ; } } } return null ; }
Find existing entity from entities list by id of the entity.
Find existing entity from entities list by id of the entity .