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

163 lines
3.9 KiB
Smali

.class Lcom/google/common/collect/RegularImmutableMultiset$SerializedForm;
.super Ljava/lang/Object;
.source "RegularImmutableMultiset.java"
# interfaces
.implements Ljava/io/Serializable;
# annotations
.annotation build Lcom/google/common/annotations/GwtIncompatible;
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/common/collect/RegularImmutableMultiset;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "SerializedForm"
.end annotation
# static fields
.field private static final serialVersionUID:J
# instance fields
.field public final counts:[I
.field public final elements:[Ljava/lang/Object;
# direct methods
.method public constructor <init>(Lcom/google/common/collect/Multiset;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/common/collect/Multiset<",
"+",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
invoke-interface {p1}, Lcom/google/common/collect/Multiset;->entrySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->size()I
move-result v0
.line 3
new-array v1, v0, [Ljava/lang/Object;
iput-object v1, p0, Lcom/google/common/collect/RegularImmutableMultiset$SerializedForm;->elements:[Ljava/lang/Object;
.line 4
new-array v0, v0, [I
iput-object v0, p0, Lcom/google/common/collect/RegularImmutableMultiset$SerializedForm;->counts:[I
.line 5
invoke-interface {p1}, Lcom/google/common/collect/Multiset;->entrySet()Ljava/util/Set;
move-result-object p1
invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object p1
const/4 v0, 0x0
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_0
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/common/collect/Multiset$Entry;
.line 6
iget-object v2, p0, Lcom/google/common/collect/RegularImmutableMultiset$SerializedForm;->elements:[Ljava/lang/Object;
invoke-interface {v1}, Lcom/google/common/collect/Multiset$Entry;->getElement()Ljava/lang/Object;
move-result-object v3
aput-object v3, v2, v0
.line 7
iget-object v2, p0, Lcom/google/common/collect/RegularImmutableMultiset$SerializedForm;->counts:[I
invoke-interface {v1}, Lcom/google/common/collect/Multiset$Entry;->getCount()I
move-result v1
aput v1, v2, v0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.end method
# virtual methods
.method public readResolve()Ljava/lang/Object;
.locals 4
.line 1
new-instance v0, Lcom/google/common/collect/ImmutableMultiset$Builder;
iget-object v1, p0, Lcom/google/common/collect/RegularImmutableMultiset$SerializedForm;->elements:[Ljava/lang/Object;
array-length v1, v1
invoke-direct {v0, v1}, Lcom/google/common/collect/ImmutableMultiset$Builder;-><init>(I)V
const/4 v1, 0x0
.line 2
:goto_0
iget-object v2, p0, Lcom/google/common/collect/RegularImmutableMultiset$SerializedForm;->elements:[Ljava/lang/Object;
array-length v3, v2
if-ge v1, v3, :cond_0
.line 3
aget-object v2, v2, v1
iget-object v3, p0, Lcom/google/common/collect/RegularImmutableMultiset$SerializedForm;->counts:[I
aget v3, v3, v1
invoke-virtual {v0, v2, v3}, Lcom/google/common/collect/ImmutableMultiset$Builder;->addCopies(Ljava/lang/Object;I)Lcom/google/common/collect/ImmutableMultiset$Builder;
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 4
:cond_0
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableMultiset$Builder;->build()Lcom/google/common/collect/ImmutableMultiset;
move-result-object v0
return-object v0
.end method