Code example for HashSet

Methods: addremovesize

0
	 * @param newSelected 
	 *            the new value of the selected flag (checkbox state) 
	 */ 
	private void updateSelected(FileListItem itemView, boolean newSelected) { 
		if (newSelected) { 
			mSelectedSet.add(itemView.getIdentifer()); 
		} else { 
			mSelectedSet.remove(itemView.getIdentifer()); 
		} 
		if (mCallback != null) { 
			mCallback.onAdapterSelectedChanged(itemView, newSelected, 
					mSelectedSet.size()); 
		} 
	} 
 
	@Override 
	public View getView(int position, View convertView, ViewGroup parent) { 
		FileListItem listItem;		 
		 
		//ViewHolder holder = null; 
Stop searching for code, let great code find you!  Add Codota to your java IDE