operator fun <T> Cursor.get(columnIndex: Int): T?
Generic version of Cursor.getString, Cursor.getNullableShort, Cursor.getNullableInt, Cursor.getNullableLong, Cursor.getNullableFloat, Cursor.getNullableDouble, and Cursor.getBlob. |
|
fun Cursor.getNullableDouble(columnIndex: Int, defaultValue: Double? = null): Double?
Same as Cursor.getDouble, but returns defaultValue when the column value is NULL. |
|
fun Cursor.getNullableFloat(columnIndex: Int, defaultValue: Float? = null): Float?
Same as Cursor.getFloat, but returns defaultValue when the column value is NULL. |
|
fun Cursor.getNullableInt(columnIndex: Int, defaultValue: Int? = null): Int?
Same as Cursor.getInt, but returns defaultValue when the column value is NULL. |
|
fun Cursor.getNullableLong(columnIndex: Int, defaultValue: Long? = null): Long?
Same as Cursor.getLong, but returns defaultValue when the column value is NULL. |
|
fun Cursor.getNullableShort(columnIndex: Int, defaultValue: Short? = null): Short?
Same as Cursor.getShort, but returns defaultValue when the column value is NULL. |