library / org.akop.kotx.ext.database / android.database.Cursor / getNullableShort

getNullableShort

fun Cursor.getNullableShort(columnIndex: Int, defaultValue: Short? = null): Short?

Same as Cursor.getShort, but returns defaultValue when the column value is NULL.

Parameters

columnIndex - zero-based index of the column.

Return
Contents of the column, or defaultValue if Cursor.isNull returns true for the specified column.