public boolean isSelected(int position){
  return mSelectedPositions.contains(position);
}

public boolean isSelected ( int position ) { return mSelectedPositions . contains ( position ) ; }
indicates if the item , at the provided position , is selected .
