CursorKt

public final class CursorKt


Summary

Public methods

static final @Nullable byte[]
CursorKt.getBlobOrNull(@NonNull Cursor receiver, int index)

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

static final @Nullable Double
CursorKt.getDoubleOrNull(@NonNull Cursor receiver, int index)

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

static final @Nullable Float
CursorKt.getFloatOrNull(@NonNull Cursor receiver, int index)

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

static final @Nullable Integer
CursorKt.getIntOrNull(@NonNull Cursor receiver, int index)

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

static final @Nullable Long
CursorKt.getLongOrNull(@NonNull Cursor receiver, int index)

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

static final @Nullable Short
CursorKt.getShortOrNull(@NonNull Cursor receiver, int index)

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

static final @Nullable String
CursorKt.getStringOrNull(@NonNull Cursor receiver, int index)

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

Public methods

CursorKt.getBlobOrNull

@Nullable
public static final byte[] CursorKt.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

CursorKt.getDoubleOrNull

@Nullable
public static final Double CursorKt.getDoubleOrNull(@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

CursorKt.getFloatOrNull

@Nullable
public static final Float CursorKt.getFloatOrNull(@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

CursorKt.getIntOrNull

@Nullable
public static final Integer CursorKt.getIntOrNull(@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

CursorKt.getLongOrNull

@Nullable
public static final Long CursorKt.getLongOrNull(@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

CursorKt.getShortOrNull

@Nullable
public static final Short CursorKt.getShortOrNull(@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

CursorKt.getStringOrNull

@Nullable
public static final String CursorKt.getStringOrNull(@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.

See also
isNull
getString