Back to project page taskr.
The source code is released under:
MIT License
If you think the Android project taskr 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.rrajath.app.data; //w w w . j a va 2 s . com import java.util.ArrayList; import java.util.List; /** * Created by rrajath on 1/4/15. */ public class Singleton { private static Singleton mInstance = null; private static List<TaskItem> taskItems; public Singleton() { taskItems = new ArrayList<>(); } public static Singleton getInstance() { if (mInstance == null) { mInstance = new Singleton(); } return mInstance; } public List<TaskItem> getTaskItems() { return taskItems; } public void setTaskItems(List<TaskItem> taskItems) { this.taskItems = taskItems; } }