201 lines
4.2 KiB
Smali
201 lines
4.2 KiB
Smali
.class public final Landroidx/core/database/CursorKt;
|
|
.super Ljava/lang/Object;
|
|
.source "Cursor.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final getBlobOrNull(Landroid/database/Cursor;I)[B
|
|
.locals 1
|
|
|
|
const-string v0, "$receiver"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->getBlob(I)[B
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final getDoubleOrNull(Landroid/database/Cursor;I)Ljava/lang/Double;
|
|
.locals 1
|
|
|
|
const-string v0, "$receiver"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->getDouble(I)D
|
|
|
|
move-result-wide p0
|
|
|
|
invoke-static {p0, p1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final getFloatOrNull(Landroid/database/Cursor;I)Ljava/lang/Float;
|
|
.locals 1
|
|
|
|
const-string v0, "$receiver"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->getFloat(I)F
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final getIntOrNull(Landroid/database/Cursor;I)Ljava/lang/Integer;
|
|
.locals 1
|
|
|
|
const-string v0, "$receiver"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->getInt(I)I
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final getLongOrNull(Landroid/database/Cursor;I)Ljava/lang/Long;
|
|
.locals 1
|
|
|
|
const-string v0, "$receiver"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->getLong(I)J
|
|
|
|
move-result-wide p0
|
|
|
|
invoke-static {p0, p1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final getShortOrNull(Landroid/database/Cursor;I)Ljava/lang/Short;
|
|
.locals 1
|
|
|
|
const-string v0, "$receiver"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->getShort(I)S
|
|
|
|
move-result p0
|
|
|
|
invoke-static {p0}, Ljava/lang/Short;->valueOf(S)Ljava/lang/Short;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final getStringOrNull(Landroid/database/Cursor;I)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
const-string v0, "$receiver"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
invoke-interface {p0, p1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|