baku-toolkit/lib/src/main/java/io/v/baku/toolkit/bind/DerivedListDeltaAccumulator.java
/**
         * Helper to {@link #processInsertions(List, ImmutableList)} that performs multi-item
         * insertion, single-item insertion, or no-ops based on contiguous scan results.
         */
Helper to  #processInsertions(List, ImmutableList) that performs multi-item
insertion, single-item insertion, or no-ops based on contiguous scan results.
Helper to #processInsertions ( List ImmutableList ) that performs multi - item insertion single - item insertion or no - ops based on contiguous scan results .
void processInsertions(final List<T> working, final int index, final List<T> insert) {
            if (!insert.isEmpty()) {
                working.addAll(index, insert);
                final int count = insert.size();
                steps.add(new DerivedListDeltaAccumulator<T>(ids, produceStepSnapshot(working)) {
                    @Override
                    public void notifyDeltas(RecyclerView.Adapter<?> rva) {
                        rva.notifyItemRangeInserted(index, count);
                    }
                });
            }
        }
void processInsertions ( final List < T > working , final int index , final List < T > insert ) { if ( ! insert . isEmpty ( ) ) { working . addAll ( index , insert ) ; final int count = insert . size ( ) ; steps . add ( new DerivedListDeltaAccumulator < T > ( ids , produceStepSnapshot ( working ) ) { @ Override public void notifyDeltas ( RecyclerView . Adapter < ? > rva ) { rva . notifyItemRangeInserted ( index , count ) ; } } ) ; } }
Helper to {@link #processInsertions(List, ImmutableList)} that performs multi-item
 insertion, single-item insertion, or no-ops based on contiguous scan results.
Helper to { @link #processInsertions ( List ImmutableList ) } that performs multi - item insertion single - item insertion or no - ops based on contiguous scan results .
// Capture count so that we're not holding onto an instance of insert and opening us // to errors if (and when) it's modified.