Code example for TreeSet

Methods: contains

0
            notifyDataSetChanged();
        } 
         
        @Override 
        public int getItemViewType(int position) {
            return mSeparatorsSet.contains(position) ? TYPE_SEPARATOR : TYPE_ITEM;
        } 
         
        @SuppressWarnings("unused") 
		public boolean areAllItemsSelectable() { 
        	return false; 
        } 
         
        public boolean isEnabled(int position) {  
        	return false;   
        } 
         
        @Override 
        public int getViewTypeCount() { 
            return TYPE_MAX_COUNT;
        }