tmap/smali_classes3/com/google/common/collect/ImmutableRangeSet$SerializedForm.smali
2022-06-10 21:38:30 +09:00

119 lines
3.2 KiB
Smali

.class final Lcom/google/common/collect/ImmutableRangeSet$SerializedForm;
.super Ljava/lang/Object;
.source "ImmutableRangeSet.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/collect/ImmutableRangeSet;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "SerializedForm"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<C::",
"Ljava/lang/Comparable;",
">",
"Ljava/lang/Object;",
"Ljava/io/Serializable;"
}
.end annotation
# instance fields
.field private final ranges:Lcom/google/common/collect/ImmutableList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/common/collect/ImmutableList<",
"Lcom/google/common/collect/Range<",
"TC;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lcom/google/common/collect/ImmutableList;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/ImmutableList<",
"Lcom/google/common/collect/Range<",
"TC;>;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/google/common/collect/ImmutableRangeSet$SerializedForm;->ranges:Lcom/google/common/collect/ImmutableList;
return-void
.end method
# virtual methods
.method public readResolve()Ljava/lang/Object;
.locals 2
.line 1
iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeSet$SerializedForm;->ranges:Lcom/google/common/collect/ImmutableList;
invoke-virtual {v0}, Ljava/util/AbstractCollection;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
.line 2
invoke-static {}, Lcom/google/common/collect/ImmutableRangeSet;->of()Lcom/google/common/collect/ImmutableRangeSet;
move-result-object v0
return-object v0
.line 3
:cond_0
iget-object v0, p0, Lcom/google/common/collect/ImmutableRangeSet$SerializedForm;->ranges:Lcom/google/common/collect/ImmutableList;
invoke-static {}, Lcom/google/common/collect/Range;->all()Lcom/google/common/collect/Range;
move-result-object v1
invoke-static {v1}, Lcom/google/common/collect/ImmutableList;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/google/common/collect/ImmutableList;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
.line 4
invoke-static {}, Lcom/google/common/collect/ImmutableRangeSet;->all()Lcom/google/common/collect/ImmutableRangeSet;
move-result-object v0
return-object v0
.line 5
:cond_1
new-instance v0, Lcom/google/common/collect/ImmutableRangeSet;
iget-object v1, p0, Lcom/google/common/collect/ImmutableRangeSet$SerializedForm;->ranges:Lcom/google/common/collect/ImmutableList;
invoke-direct {v0, v1}, Lcom/google/common/collect/ImmutableRangeSet;-><init>(Lcom/google/common/collect/ImmutableList;)V
return-object v0
.end method