Configuration$ImageHint.smali
.class public final enum Lcom/facebook/spectrum/Configuration$ImageHint;
.super Ljava/lang/Enum;
.source "Configuration.java"
# annotations
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/spectrum/Configuration;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "ImageHint"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/facebook/spectrum/Configuration$ImageHint;",
">;"
}
.end annotation
.annotation build Ljavax/annotation/concurrent/Immutable;
.end annotation
# static fields
.field public static final synthetic $VALUES:[Lcom/facebook/spectrum/Configuration$ImageHint;
.field public static final enum DEFAULT:Lcom/facebook/spectrum/Configuration$ImageHint;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum GRAPH:Lcom/facebook/spectrum/Configuration$ImageHint;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum PHOTO:Lcom/facebook/spectrum/Configuration$ImageHint;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
.field public static final enum PICTURE:Lcom/facebook/spectrum/Configuration$ImageHint;
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
# instance fields
.field public final value:I
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.registers 7
new-instance v0, Lcom/facebook/spectrum/Configuration$ImageHint;
const/4 v1, 0x0
const-string v2, "DEFAULT"
invoke-direct {v0, v2, v1, v1}, Lcom/facebook/spectrum/Configuration$ImageHint;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/spectrum/Configuration$ImageHint;->DEFAULT:Lcom/facebook/spectrum/Configuration$ImageHint;
new-instance v0, Lcom/facebook/spectrum/Configuration$ImageHint;
const/4 v2, 0x1
const-string v3, "PICTURE"
invoke-direct {v0, v3, v2, v2}, Lcom/facebook/spectrum/Configuration$ImageHint;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/spectrum/Configuration$ImageHint;->PICTURE:Lcom/facebook/spectrum/Configuration$ImageHint;
new-instance v0, Lcom/facebook/spectrum/Configuration$ImageHint;
const/4 v3, 0x2
const-string v4, "PHOTO"
invoke-direct {v0, v4, v3, v3}, Lcom/facebook/spectrum/Configuration$ImageHint;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/spectrum/Configuration$ImageHint;->PHOTO:Lcom/facebook/spectrum/Configuration$ImageHint;
new-instance v0, Lcom/facebook/spectrum/Configuration$ImageHint;
const/4 v4, 0x3
const-string v5, "GRAPH"
invoke-direct {v0, v5, v4, v4}, Lcom/facebook/spectrum/Configuration$ImageHint;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/facebook/spectrum/Configuration$ImageHint;->GRAPH:Lcom/facebook/spectrum/Configuration$ImageHint;
const/4 v5, 0x4
new-array v5, v5, [Lcom/facebook/spectrum/Configuration$ImageHint;
sget-object v6, Lcom/facebook/spectrum/Configuration$ImageHint;->DEFAULT:Lcom/facebook/spectrum/Configuration$ImageHint;
aput-object v6, v5, v1
sget-object v1, Lcom/facebook/spectrum/Configuration$ImageHint;->PICTURE:Lcom/facebook/spectrum/Configuration$ImageHint;
aput-object v1, v5, v2
sget-object v1, Lcom/facebook/spectrum/Configuration$ImageHint;->PHOTO:Lcom/facebook/spectrum/Configuration$ImageHint;
aput-object v1, v5, v3
aput-object v0, v5, v4
sput-object v5, Lcom/facebook/spectrum/Configuration$ImageHint;->$VALUES:[Lcom/facebook/spectrum/Configuration$ImageHint;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;II)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
iput p3, p0, Lcom/facebook/spectrum/Configuration$ImageHint;->value:I
return-void
.end method
.method public static from(I)Lcom/facebook/spectrum/Configuration$ImageHint;
.registers 6
.annotation build Lcom/facebook/jni/annotations/DoNotStrip;
.end annotation
invoke-static {}, Lcom/facebook/spectrum/Configuration$ImageHint;->values()[Lcom/facebook/spectrum/Configuration$ImageHint;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_6
if-ge v2, v1, :cond_12
aget-object v3, v0, v2
iget v4, v3, Lcom/facebook/spectrum/Configuration$ImageHint;->value:I
if-ne v4, p0, :cond_f
return-object v3
:cond_f
add-int/lit8 v2, v2, 0x1
goto :goto_6
:cond_12
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Unsupported ImageHint"
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
goto :goto_1b
:goto_1a
throw p0
:goto_1b
goto :goto_1a
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/facebook/spectrum/Configuration$ImageHint;
.registers 2
const-class v0, Lcom/facebook/spectrum/Configuration$ImageHint;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/facebook/spectrum/Configuration$ImageHint;
return-object p0
.end method
.method public static values()[Lcom/facebook/spectrum/Configuration$ImageHint;
.registers 1
sget-object v0, Lcom/facebook/spectrum/Configuration$ImageHint;->$VALUES:[Lcom/facebook/spectrum/Configuration$ImageHint;
invoke-virtual {v0}, [Lcom/facebook/spectrum/Configuration$ImageHint;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/facebook/spectrum/Configuration$ImageHint;
return-object v0
.end method