Rabbit-R1/switch port/smali/smali_classes3/io/sentry/CustomSamplingContext.smali
2024-05-21 17:08:36 -04:00

87 lines
2.1 KiB
Smali

.class public final Lio/sentry/CustomSamplingContext;
.super Ljava/lang/Object;
.source "CustomSamplingContext.java"
# instance fields
.field private final data:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 1
.line 13
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 14
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lio/sentry/CustomSamplingContext;->data:Ljava/util/Map;
return-void
.end method
# virtual methods
.method public get(Ljava/lang/String;)Ljava/lang/Object;
.locals 1
const-string v0, "key is required"
.line 22
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
iget-object p0, p0, Lio/sentry/CustomSamplingContext;->data:Ljava/util/Map;
.line 23
invoke-interface {p0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public getData()Ljava/util/Map;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
iget-object p0, p0, Lio/sentry/CustomSamplingContext;->data:Ljava/util/Map;
return-object p0
.end method
.method public set(Ljava/lang/String;Ljava/lang/Object;)V
.locals 1
const-string v0, "key is required"
.line 17
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
iget-object p0, p0, Lio/sentry/CustomSamplingContext;->data:Ljava/util/Map;
.line 18
invoke-interface {p0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method