Code example for LinkedList

0
 * 
 * @author Tim Su <tim@todoroo.com> 
 * 
 */ 
public class ImportanceControlSet extends TaskEditControlSet { 
    private final List<CompoundButton> buttons = new LinkedList<CompoundButton>();
    private final int[] colors;
    private final List<ImportanceChangedListener> listeners = new LinkedList<ImportanceChangedListener>();
 
    public interface ImportanceChangedListener { 
        public void importanceChanged(int i, int color);
    } 
 
    public ImportanceControlSet(Activity activity, int layout) {
        super(activity, layout);
        colors = Task.getImportanceColors(activity.getResources());
    } 
 
    public void setImportance(Integer i) {
        for(CompoundButton b : buttons) {
            if(b.getTag() == i) {