Back to project page ShoppingList.
The source code is released under:
GNU General Public License
If you think the Android project ShoppingList 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 net.sledzdev.shoppinglist.adapter; /* ww w. j ava 2s . co m*/ import com.google.common.base.Optional; /** * Created by Mariusz on 08.12.13. */ public interface DataModel<T extends ElementWithId> extends Iterable<T> { public Optional<T> getAtPosition(int position); public Optional<T> getAtId(long id); public void addElement(T element); public void removeElement(T element); public int size(); }