package com.ody.photopicker.event; import com.ody.photopicker.entity.Photo; /** * Created by Samuel on 15/6/30. */ public interface Selectable { /** * Indicates if the item at position position is selected * * @param photo Photo of the item to check * @return true if the item is selected, false otherwise */ boolean isSelected(Photo photo); /** * Toggle the selection status of the item at a given position * * @param photo Photo of the item to toggle the selection status for */ void toggleSelection(Photo photo); /** * Clear the selection status for all items */ void clearSelection(); /** * Count the selected items * * @return Selected items count */ int getSelectedItemCount(); }