Code example for TreeSet

Methods: toArraysize

		private PackageInfo[] apps;
		private LayoutInflater mInflater;
		private PackageManager mPackMan;
		public AppListAdapter(TreeSet<PackageInfo> appinstall, LayoutInflater inflater, PackageManager packageManager){
			apps = appinstall.toArray(new PackageInfo[appinstall.size()]);
			mInflater = inflater;
			mPackMan = packageManager;
		public int getCount() { 
			return (apps == null) ? 0 : apps.length;
		public Object getItem(int position) {
			return null; 
Connect your IDE to all the code out there  Get Codota for Java