Code example for TreeSet

Methods: size, toArray

0
		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;
		} 
		 
		@Override 
		public int getCount() { 
			return (apps == null) ? 0 : apps.length;
		} 
 
		@Override 
		public Object getItem(int position) {
			return null; 
		} 
 
		@Override