insert an item into the queue at given index . will directly call com.nhaarman.listviewanimations.itemmanipulation.animateadditionadapter.insertable #add int , object if there are no active index-item pairs . otherwise , the pair will be queued . concode_field_sep List<Pair<Integer,T>> mPendingItemsToInsert concode_elem_sep Set<AtomicInteger> mActiveIndexes concode_elem_sep AnimateAdditionAdapter.Insertable<T> mInsertable concode_field_sep void removeActiveIndex concode_elem_sep Collection<Integer> getActiveIndexes concode_elem_sep void clearActive concode_elem_sep List<Pair<Integer,T>> getPendingItemsToInsert concode_elem_sep void insertPending
void function ( final int arg0 , final T arg1 ) { if ( mActiveIndexes . isEmpty ( ) && mPendingItemsToInsert . isEmpty ( ) ) { mActiveIndexes . add ( new AtomicInteger ( arg0 ) ) ; mInsertable . add ( arg0 , arg1 ) ; } else { mPendingItemsToInsert . add ( new Pair < Integer , T > ( arg0 , arg1 ) ) ; } }