/FileExtraction/Java_unseen/woheller69_omweather/app/src/main/java/org/woheller69/weather/ui/RecycleList/ItemTouchHelperAdapter.java
package org.woheller69.weather.ui.RecycleList;

/**
 * This interface defines the functionality that can be bound to touch events.
 * For the most part it has been taken from
 * https://medium.com/@ipaulpro/drag-and-swipe-with-recyclerview-b9456d2b1aaf#.hmhbe8sku
 * as of 2016-08-03
 */
public interface ItemTouchHelperAdapter {

    /**
     * This method removes an item from an adapter at the specified positin.
     *
     * @param position The position of the item to remove.
     */
    void onItemDismiss(int position);

    /**
     * This method is required to remove items from the list that is used to display the data
     * whenever an item is deleted by swiping.
     *
     * @param fromPosition The from position.
     * @param toPosition   The to position.
     */
    void onItemMove(int fromPosition, int toPosition);

}
