app/src/main/java/db/juhaku/juhakudb/core/android/transaction/TransactionTemplate.java
/**
     * Insert object to object cache for later checking. Each object can only be set once to cache.
     * <p>Result cache will be cleared always at end of transaction automatically.</p>
     * @param result Object to put to the cache.
     *
     * @since 1.0.2
     */
Insert object to object cache for later checking. Each object can only be set once to cache.
Result cache will be cleared always at end of transaction automatically.
@param result Object to put to the cache.


Insert object to object cache for later checking . Each object can only be set once to cache . Result cache will be cleared always at end of transaction automatically . @param result Object to put to the cache .
final void cache(Object result) {
        if (resultCache == null) {
            resultCache = new ArrayList<>();
        }
        if (!isCached(result)) {
            resultCache.add(result);
        }
    }
final void cache ( Object result ) { if ( resultCache == null ) { resultCache = new ArrayList < > ( ) ; } if ( ! isCached ( result ) ) { resultCache . add ( result ) ; } }
Insert object to object cache for later checking.
Insert object to object cache for later checking .