void onItemDismissed(final int position){
  final T removed=mData.get(position);
  final boolean wasRemoved=remove(position);
  if (wasRemoved && mDataChangeListener != null) {
    mDataChangeListener.onItemRemoved(removed,position);
  }
}

void onItemDismissed ( final int position ) { final T removed = mData . get ( position ) ; final boolean wasRemoved = remove ( position ) ; if ( wasRemoved && mDataChangeListener != null ) { mDataChangeListener . onItemRemoved ( removed , position ) ; } }
dismisses item from the given position .
