Files
rr3-apk/smali_classes3/com/google/firebase/perf/util/Optional.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

129 lines
2.7 KiB
Smali

.class public final Lcom/google/firebase/perf/util/Optional;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public final value:Ljava/lang/Object;
# direct methods
.method public constructor <init>()V
.locals 1
.line 31
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/firebase/perf/util/Optional;->value:Ljava/lang/Object;
return-void
.end method
.method public constructor <init>(Ljava/lang/Object;)V
.locals 1
.line 41
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
if-eqz p1, :cond_0
iput-object p1, p0, Lcom/google/firebase/perf/util/Optional;->value:Ljava/lang/Object;
return-void
.line 43
:cond_0
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "value for optional is empty."
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public static absent()Lcom/google/firebase/perf/util/Optional;
.locals 1
.line 55
new-instance v0, Lcom/google/firebase/perf/util/Optional;
invoke-direct {v0}, Lcom/google/firebase/perf/util/Optional;-><init>()V
return-object v0
.end method
.method public static fromNullable(Ljava/lang/Object;)Lcom/google/firebase/perf/util/Optional;
.locals 0
if-nez p0, :cond_0
.line 80
invoke-static {}, Lcom/google/firebase/perf/util/Optional;->absent()Lcom/google/firebase/perf/util/Optional;
move-result-object p0
goto :goto_0
:cond_0
invoke-static {p0}, Lcom/google/firebase/perf/util/Optional;->of(Ljava/lang/Object;)Lcom/google/firebase/perf/util/Optional;
move-result-object p0
:goto_0
return-object p0
.end method
.method public static of(Ljava/lang/Object;)Lcom/google/firebase/perf/util/Optional;
.locals 1
.line 67
new-instance v0, Lcom/google/firebase/perf/util/Optional;
invoke-direct {v0, p0}, Lcom/google/firebase/perf/util/Optional;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
# virtual methods
.method public get()Ljava/lang/Object;
.locals 2
iget-object v0, p0, Lcom/google/firebase/perf/util/Optional;->value:Ljava/lang/Object;
if-eqz v0, :cond_0
return-object v0
.line 93
:cond_0
new-instance v0, Ljava/util/NoSuchElementException;
const-string v1, "No value present"
invoke-direct {v0, v1}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public isAvailable()Z
.locals 1
iget-object v0, p0, Lcom/google/firebase/perf/util/Optional;->value:Ljava/lang/Object;
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return v0
.end method