Back to project page BLEMeshChat.
The source code is released under:
GNU General Public License
If you think the Android project BLEMeshChat 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 pro.dbro.ble.data.model; //from w w w .j ava 2 s . c o m import android.database.Cursor; import android.support.annotation.NonNull; import java.io.Closeable; /** * Created by davidbrodsky on 10/20/14. */ public abstract class CursorModel implements Closeable{ protected Cursor mCursor; /** * Use this constructor if you intend to immediately access model data. * @param cursor A cursor that is already moved to the row corresponding to the desired model instance */ public CursorModel(@NonNull Cursor cursor) { mCursor = cursor; } public Cursor getCursor() { return mCursor; } @Override public void close() { if (mCursor != null) { mCursor.close(); } } }