Back to project page Assignment1.
The source code is released under:
GNU General Public License
If you think the Android project Assignment1 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.kwicento_count; /*w w w. j av a 2 s. c o m*/ import java.io.Serializable; import java.util.ArrayList; public class CounterListModel implements Serializable{ private static final long serialVersionUID = 1L; protected ArrayList<Counter> currentCounters; public CounterListModel() { currentCounters = new ArrayList<Counter>(); } public ArrayList<Counter> getCurrentCounters() { return currentCounters; } public void setCurrentCounters(ArrayList<Counter> currentCounters) { this.currentCounters = currentCounters; } public void addNewCounter(Counter c) { currentCounters.add(c); } public void deleteCounter(Counter c) { currentCounters.remove(c); } }