core-ktx / androidx.database / android.database.Cursor / getShortOrNull

getShortOrNull

inline fun Cursor.getShortOrNull(index: Int): Short?

Returns the value of the requested column as a nullable short.

The result and whether this method throws an exception when the column type is not an integral type is implementation-defined.

See Also

Cursor.isNull

Cursor.getShort

inline fun Cursor.getShortOrNull(columnName: String): Short?

Returns the value of the requested column as a nullable short.

The result and whether this method throws an exception when the column type is not an integral type is implementation-defined.

See Also

Cursor.getColumnIndexOrThrow

Cursor.isNull

Cursor.getShort