CursorKt

Added in 1.1.0

public final class CursorKt

Summary

Public methods

getBlobOrNull

Added in 1.1.0
public static final byte[] getBlobOrNull(@NonNull Cursor receiver, int index)

Returns the value of the requested column as a nullable byte array.

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

See also
isNull
getBlob

getDoubleOrNull

Added in 1.1.0
public static final DoublegetDoubleOrNull(@NonNull Cursor receiver, int index)

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

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

See also
isNull
getDouble

getFloatOrNull

Added in 1.1.0
public static final FloatgetFloatOrNull(@NonNull Cursor receiver, int index)

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

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

See also
isNull
getFloat

getIntOrNull

Added in 1.1.0
public static final IntegergetIntOrNull(@NonNull Cursor receiver, int index)

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

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

See also
isNull
getInt

getLongOrNull

Added in 1.1.0
public static final LonggetLongOrNull(@NonNull Cursor receiver, int index)

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

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

See also
isNull
getLong

getShortOrNull

Added in 1.1.0
public static final ShortgetShortOrNull(@NonNull Cursor receiver, int index)

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
isNull
getShort

getStringOrNull

Added in 1.1.0
public static final StringgetStringOrNull(@NonNull Cursor receiver, int index)

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

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