belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
CursorMapper
public
abstract
class
CursorMapper
extends Object
java.lang.Object | |
↳ | android.support.v17.leanback.database.CursorMapper |
Abstract class used to convert the current Cursor
row to a single
object.
Summary
Public constructors | |
---|---|
CursorMapper()
|
Protected methods | |
---|---|
abstract
Object
|
bind(Cursor cursor)
A subclass should implement this method to create a single object using binding information. |
abstract
void
|
bindColumns(Cursor cursor)
Called once when the associated |
Public constructors
Public methods
convert
Object convert (Cursor cursor)
Convert a Cursor
at its current position to an Object.
Parameters | |
---|---|
cursor |
Cursor |
Returns | |
---|---|
Object |
Protected methods
bind
Object bind (Cursor cursor)
A subclass should implement this method to create a single object using binding information. This method is not intended to be called outside of CursorMapper.
Parameters | |
---|---|
cursor |
Cursor |
Returns | |
---|---|
Object |
bindColumns
void bindColumns (Cursor cursor)
Called once when the associated Cursor
is changed. A subclass
should bind column indexes to column names in this method. This method is
not intended to be called outside of CursorMapper.
Parameters | |
---|---|
cursor |
Cursor |
Classes