Code example for Set

Methods: addAll, clear

0
    public void checkAll() { 
        checked.clear();
        if (visualList != null) {
            checked.addAll(visualList);
        } 
        notifyDataSetChanged();
    } 
 
    public Context getContext() {
        return context;
    } 
 
    public int getCount() { 
        return visualList == null ? 0 : visualList.size();
    } 
 
    public T getItem(int position) {
        return visualList.get(position);
    } 
 
    public long getItemId(int position) {