InterpolatorType.smali
.class public final enum Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
.super Ljava/lang/Enum;
.source "InterpolatorType.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;",
">;"
}
.end annotation
# static fields
.field public static final synthetic $VALUES:[Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
.field public static final enum EASE_IN:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
.field public static final enum EASE_IN_EASE_OUT:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
.field public static final enum EASE_OUT:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
.field public static final enum LINEAR:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
.field public static final enum SPRING:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
# direct methods
.method public static constructor <clinit>()V
.registers 8
new-instance v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
const/4 v1, 0x0
const-string v2, "LINEAR"
invoke-direct {v0, v2, v1}, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->LINEAR:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
new-instance v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
const/4 v2, 0x1
const-string v3, "EASE_IN"
invoke-direct {v0, v3, v2}, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->EASE_IN:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
new-instance v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
const/4 v3, 0x2
const-string v4, "EASE_OUT"
invoke-direct {v0, v4, v3}, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->EASE_OUT:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
new-instance v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
const/4 v4, 0x3
const-string v5, "EASE_IN_EASE_OUT"
invoke-direct {v0, v5, v4}, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->EASE_IN_EASE_OUT:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
new-instance v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
const/4 v5, 0x4
const-string v6, "SPRING"
invoke-direct {v0, v6, v5}, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->SPRING:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
const/4 v6, 0x5
new-array v6, v6, [Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
sget-object v7, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->LINEAR:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
aput-object v7, v6, v1
sget-object v1, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->EASE_IN:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
aput-object v1, v6, v2
sget-object v1, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->EASE_OUT:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
aput-object v1, v6, v3
sget-object v1, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->EASE_IN_EASE_OUT:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
aput-object v1, v6, v4
aput-object v0, v6, v5
sput-object v6, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->$VALUES:[Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
return-void
.end method
.method public constructor <init>(Ljava/lang/String;I)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static fromString(Ljava/lang/String;)Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
.registers 7
sget-object v0, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-virtual {p0, v0}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
move-result v1
const/4 v2, 0x4
const/4 v3, 0x3
const/4 v4, 0x2
const/4 v5, 0x1
sparse-switch v1, :sswitch_data_76
goto :goto_44
:sswitch_12
const-string v1, "easeineaseout"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_44
const/4 v0, 0x3
goto :goto_45
:sswitch_1c
const-string v1, "spring"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_44
const/4 v0, 0x4
goto :goto_45
:sswitch_26
const-string v1, "linear"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_44
const/4 v0, 0x0
goto :goto_45
:sswitch_30
const-string v1, "easein"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_44
const/4 v0, 0x1
goto :goto_45
:sswitch_3a
const-string v1, "easeout"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_44
const/4 v0, 0x2
goto :goto_45
:cond_44
:goto_44
const/4 v0, -0x1
:goto_45
if-eqz v0, :cond_72
if-eq v0, v5, :cond_6f
if-eq v0, v4, :cond_6c
if-eq v0, v3, :cond_69
if-ne v0, v2, :cond_52
sget-object p0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->SPRING:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
return-object p0
:cond_52
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Unsupported interpolation type : "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_69
sget-object p0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->EASE_IN_EASE_OUT:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
return-object p0
:cond_6c
sget-object p0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->EASE_OUT:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
return-object p0
:cond_6f
sget-object p0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->EASE_IN:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
return-object p0
:cond_72
sget-object p0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->LINEAR:Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
return-object p0
nop
:sswitch_data_76
.sparse-switch
-0x75206360 -> :sswitch_3a
-0x4e19d26d -> :sswitch_30
-0x41b970db -> :sswitch_26
-0x3562fdf3 -> :sswitch_1c
0x456993ad -> :sswitch_12
.end sparse-switch
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
.registers 2
const-class v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
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/react/uimanager/layoutanimation/InterpolatorType;
return-object p0
.end method
.method public static values()[Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
.registers 1
sget-object v0, Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->$VALUES:[Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
invoke-virtual {v0}, [Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/facebook/react/uimanager/layoutanimation/InterpolatorType;
return-object v0
.end method