Back to project page tennis-charting-android.
The source code is released under:
GNU General Public License
If you think the Android project tennis-charting-android 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.inklily.tennischarting; //from ww w .ja v a 2 s . c o m import android.widget.ListAdapter; /** * Interface to manage storing matches. */ public interface MatchStorage extends ListAdapter { public class MatchStorageNotAvailableException extends Exception { private static final long serialVersionUID = 1L; } public class InvalidPointException extends RuntimeException { private static final long serialVersionUID = 1L; } public interface OnStorageAvailableListener { public void onStorageAvailable(MatchStorage storage); } public void addOnStorageAvailableListener(OnStorageAvailableListener listener); public void savePoint(Match m, Point p) throws MatchStorageNotAvailableException; public void saveMatch(Match m) throws MatchStorageNotAvailableException; public void deleteMatch(long id) throws MatchStorageNotAvailableException; public Match retrieveMatch(long id) throws MatchStorageNotAvailableException; }