Code example for HashSet

Methods: clear

0
        //this.original = new ArrayList<Message>(list); 
    } 
     
    public void clearCheckedItems() 
    { 
      this.checkedItems.clear();
      for (int i = 0; ; i++)
      { 
        if (i >= this.list.size())
        { 
          notifyDataSetChanged();
          this.activity.onItemsCheckChanged();
          return; 
        } 
        //((Message)this.list.get(i)).setChecked(false); 
      } 
    } 
     
    public HashSet<Long> getCheckedItems()
    { 
      return this.checkedItems;