Code example for TreeSet

Methods: addAll

0
	} 
 
	@Override 
	public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
		ArrayList<PackageInfo> list = appMap.get(mPerms.get(position));
		TreeSet<PackageInfo> tree = new TreeSet<PackageInfo>(new Utils.PackInCompWord(getSherlockActivity().getPackageManager()));
		tree.addAll(list);
		((SearchResultActivity) getSherlockActivity()).setApps(tree);
		((SearchResultActivity) getSherlockActivity()).startRightFrag(); 
	} 
}