Code example for Set

Methods: clear, size

0
    public void clearChecked() { 
        if (checked != null && checked.size() > 0) {
            checked.clear();
            notifyDataSetChanged();
        } 
    } 
 
    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();