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; //w w w. j a v a2 s.c o m import android.database.Cursor; import android.support.annotation.NonNull; import android.support.annotation.Nullable; /** * Created by davidbrodsky on 10/20/14. */ public class MessageCollection extends CursorModel { public MessageCollection(@NonNull Cursor cursor) { super(cursor); } @Nullable public Message getMessageAtPosition(int position) { boolean success = mCursor.move(position); if (success) return new Message(mCursor); return null; } public Cursor getCursor() { return mCursor; } }