T - the typepublic interface FieldConverter<T>
| Modifier and Type | Method and Description |
|---|---|
T |
fromCursorValue(android.database.Cursor cursor,
int columnIndex)
Convert a cursor value at the specified index to an instance of T
|
EntityConverter.ColumnType |
getColumnType()
Return the column type
|
void |
toContentValue(T value,
java.lang.String key,
android.content.ContentValues values)
Convert an instance of T to a value that can be stored in a ContentValues object
|
T fromCursorValue(android.database.Cursor cursor, int columnIndex)
cursor - the cursorcolumnIndex - the index of the requested value in the cursorvoid toContentValue(T value, java.lang.String key, android.content.ContentValues values)
value - the valuekey - the key to store the value undervalues - the content values to store the valueEntityConverter.ColumnType getColumnType()