mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
921 lines
20 KiB
Smali
921 lines
20 KiB
Smali
.class public final Lcom/google/common/primitives/ImmutableIntArray;
|
|
.super Ljava/lang/Object;
|
|
.source "ImmutableIntArray.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/io/Serializable;
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lcom/google/common/primitives/ElementTypesAreNonnullByDefault;
|
|
.end annotation
|
|
|
|
.annotation runtime Lcom/google/errorprone/annotations/Immutable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/primitives/ImmutableIntArray$AsList;,
|
|
Lcom/google/common/primitives/ImmutableIntArray$Builder;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final EMPTY:Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
|
|
# instance fields
|
|
.field private final array:[I
|
|
|
|
.field private final end:I
|
|
|
|
.field private final transient start:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
.line 85
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-array v1, v1, [I
|
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
sput-object v0, Lcom/google/common/primitives/ImmutableIntArray;->EMPTY:Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>([I)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 317
|
|
array-length v1, p1
|
|
|
|
invoke-direct {p0, p1, v0, v1}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([III)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>([III)V
|
|
.locals 0
|
|
|
|
.line 320
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
iput p2, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
iput p3, p0, Lcom/google/common/primitives/ImmutableIntArray;->end:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method synthetic constructor <init>([IIILcom/google/common/primitives/ImmutableIntArray$1;)V
|
|
.locals 0
|
|
|
|
.line 84
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([III)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$000(Lcom/google/common/primitives/ImmutableIntArray;)[I
|
|
.locals 0
|
|
|
|
.line 84
|
|
iget-object p0, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic access$100(Lcom/google/common/primitives/ImmutableIntArray;)I
|
|
.locals 0
|
|
|
|
.line 84
|
|
iget p0, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic access$200()Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/google/common/primitives/ImmutableIntArray;->EMPTY:Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static builder()Lcom/google/common/primitives/ImmutableIntArray$Builder;
|
|
.locals 2
|
|
|
|
.line 188
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray$Builder;
|
|
|
|
const/16 v1, 0xa
|
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/primitives/ImmutableIntArray$Builder;-><init>(I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static builder(I)Lcom/google/common/primitives/ImmutableIntArray$Builder;
|
|
.locals 2
|
|
|
|
if-ltz p0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
const-string v1, "Invalid initialCapacity: %s"
|
|
|
|
.line 175
|
|
invoke-static {v0, v1, p0}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/String;I)V
|
|
|
|
.line 176
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray$Builder;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray$Builder;-><init>(I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static copyOf(Ljava/lang/Iterable;)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Iterable<",
|
|
"Ljava/lang/Integer;",
|
|
">;)",
|
|
"Lcom/google/common/primitives/ImmutableIntArray;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 158
|
|
instance-of v0, p0, Ljava/util/Collection;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 159
|
|
check-cast p0, Ljava/util/Collection;
|
|
|
|
invoke-static {p0}, Lcom/google/common/primitives/ImmutableIntArray;->copyOf(Ljava/util/Collection;)Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 161
|
|
:cond_0
|
|
invoke-static {}, Lcom/google/common/primitives/ImmutableIntArray;->builder()Lcom/google/common/primitives/ImmutableIntArray$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray$Builder;->addAll(Ljava/lang/Iterable;)Lcom/google/common/primitives/ImmutableIntArray$Builder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray$Builder;->build()Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static copyOf(Ljava/util/Collection;)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Collection<",
|
|
"Ljava/lang/Integer;",
|
|
">;)",
|
|
"Lcom/google/common/primitives/ImmutableIntArray;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 147
|
|
invoke-interface {p0}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object p0, Lcom/google/common/primitives/ImmutableIntArray;->EMPTY:Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
invoke-static {p0}, Lcom/google/common/primitives/Ints;->toArray(Ljava/util/Collection;)[I
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
move-object p0, v0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static copyOf([I)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 2
|
|
|
|
.line 142
|
|
array-length v0, p0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
sget-object p0, Lcom/google/common/primitives/ImmutableIntArray;->EMPTY:Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
array-length v1, p0
|
|
|
|
invoke-static {p0, v1}, Ljava/util/Arrays;->copyOf([II)[I
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
move-object p0, v0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private isPartialView()Z
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
if-gtz v0, :cond_1
|
|
|
|
iget v0, p0, Lcom/google/common/primitives/ImmutableIntArray;->end:I
|
|
|
|
iget-object p0, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
.line 556
|
|
array-length p0, p0
|
|
|
|
if-ge v0, p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p0, 0x1
|
|
|
|
:goto_1
|
|
return p0
|
|
.end method
|
|
|
|
.method public static of()Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/google/common/primitives/ImmutableIntArray;->EMPTY:Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static of(I)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
|
|
.line 94
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
filled-new-array {p0}, [I
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static of(II)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
|
|
.line 99
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
filled-new-array {p0, p1}, [I
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static of(III)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
|
|
.line 104
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
filled-new-array {p0, p1, p2}, [I
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static of(IIII)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
|
|
.line 109
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
filled-new-array {p0, p1, p2, p3}, [I
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static of(IIIII)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
|
|
.line 114
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
filled-new-array {p0, p1, p2, p3, p4}, [I
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static of(IIIIII)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 3
|
|
|
|
.line 119
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
const/4 v1, 0x6
|
|
|
|
new-array v1, v1, [I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput p0, v1, v2
|
|
|
|
const/4 p0, 0x1
|
|
|
|
aput p1, v1, p0
|
|
|
|
const/4 p0, 0x2
|
|
|
|
aput p2, v1, p0
|
|
|
|
const/4 p0, 0x3
|
|
|
|
aput p3, v1, p0
|
|
|
|
const/4 p0, 0x4
|
|
|
|
aput p4, v1, p0
|
|
|
|
const/4 p0, 0x5
|
|
|
|
aput p5, v1, p0
|
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static varargs of(I[I)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 4
|
|
|
|
.line 132
|
|
array-length v0, p1
|
|
|
|
const v1, 0x7ffffffe
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
move v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v3
|
|
|
|
:goto_0
|
|
const-string v1, "the total number of elements must fit in an int"
|
|
|
|
invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
.line 134
|
|
array-length v0, p1
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
new-array v0, v0, [I
|
|
|
|
.line 135
|
|
aput p0, v0, v3
|
|
|
|
.line 136
|
|
array-length p0, p1
|
|
|
|
invoke-static {p1, v3, v0, v2, p0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 137
|
|
new-instance p0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public asList()Ljava/util/List;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/Integer;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 413
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray$AsList;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, p0, v1}, Lcom/google/common/primitives/ImmutableIntArray$AsList;-><init>(Lcom/google/common/primitives/ImmutableIntArray;Lcom/google/common/primitives/ImmutableIntArray$1;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public contains(I)Z
|
|
.locals 0
|
|
|
|
.line 378
|
|
invoke-virtual {p0, p1}, Lcom/google/common/primitives/ImmutableIntArray;->indexOf(I)I
|
|
|
|
move-result p0
|
|
|
|
if-ltz p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 5
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/CheckForNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, p0, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 500
|
|
:cond_0
|
|
instance-of v1, p1, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return v2
|
|
|
|
.line 503
|
|
:cond_1
|
|
check-cast p1, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
.line 504
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray;->length()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Lcom/google/common/primitives/ImmutableIntArray;->length()I
|
|
|
|
move-result v3
|
|
|
|
if-eq v1, v3, :cond_2
|
|
|
|
return v2
|
|
|
|
:cond_2
|
|
move v1, v2
|
|
|
|
.line 507
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray;->length()I
|
|
|
|
move-result v3
|
|
|
|
if-ge v1, v3, :cond_4
|
|
|
|
.line 508
|
|
invoke-virtual {p0, v1}, Lcom/google/common/primitives/ImmutableIntArray;->get(I)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {p1, v1}, Lcom/google/common/primitives/ImmutableIntArray;->get(I)I
|
|
|
|
move-result v4
|
|
|
|
if-eq v3, v4, :cond_3
|
|
|
|
return v2
|
|
|
|
:cond_3
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
return v0
|
|
.end method
|
|
|
|
.method public get(I)I
|
|
.locals 1
|
|
|
|
.line 343
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray;->length()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1, v0}, Lcom/google/common/base/Preconditions;->checkElementIndex(II)I
|
|
|
|
iget-object v0, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
iget p0, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
add-int/2addr p0, p1
|
|
|
|
.line 344
|
|
aget p0, v0, p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 3
|
|
|
|
iget v0, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:goto_0
|
|
iget v2, p0, Lcom/google/common/primitives/ImmutableIntArray;->end:I
|
|
|
|
if-ge v0, v2, :cond_0
|
|
|
|
mul-int/lit8 v1, v1, 0x1f
|
|
|
|
iget-object v2, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
.line 521
|
|
aget v2, v2, v0
|
|
|
|
invoke-static {v2}, Lcom/google/common/primitives/Ints;->hashCode(I)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return v1
|
|
.end method
|
|
|
|
.method public indexOf(I)I
|
|
.locals 2
|
|
|
|
iget v0, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
:goto_0
|
|
iget v1, p0, Lcom/google/common/primitives/ImmutableIntArray;->end:I
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
iget-object v1, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
.line 353
|
|
aget v1, v1, v0
|
|
|
|
if-ne v1, p1, :cond_0
|
|
|
|
iget p0, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
sub-int/2addr v0, p0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, -0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public isEmpty()Z
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/common/primitives/ImmutableIntArray;->end:I
|
|
|
|
iget p0, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
if-ne v0, p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public lastIndexOf(I)I
|
|
.locals 3
|
|
|
|
iget v0, p0, Lcom/google/common/primitives/ImmutableIntArray;->end:I
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
:goto_0
|
|
iget v1, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
if-lt v0, v1, :cond_1
|
|
|
|
iget-object v2, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
.line 366
|
|
aget v2, v2, v0
|
|
|
|
if-ne v2, p1, :cond_0
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p0, -0x1
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public length()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/google/common/primitives/ImmutableIntArray;->end:I
|
|
|
|
iget p0, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
sub-int/2addr v0, p0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method readResolve()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.line 564
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object p0, Lcom/google/common/primitives/ImmutableIntArray;->EMPTY:Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public subArray(II)Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 2
|
|
|
|
.line 394
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray;->length()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {p1, p2, v0}, Lcom/google/common/base/Preconditions;->checkPositionIndexes(III)V
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
sget-object p0, Lcom/google/common/primitives/ImmutableIntArray;->EMPTY:Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
goto :goto_0
|
|
|
|
.line 397
|
|
:cond_0
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
iget-object v1, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
iget p0, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
add-int/2addr p1, p0
|
|
|
|
add-int/2addr p0, p2
|
|
|
|
invoke-direct {v0, v1, p1, p0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([III)V
|
|
|
|
move-object p0, v0
|
|
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public toArray()[I
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
iget v1, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
iget p0, p0, Lcom/google/common/primitives/ImmutableIntArray;->end:I
|
|
|
|
.line 383
|
|
invoke-static {v0, v1, p0}, Ljava/util/Arrays;->copyOfRange([III)[I
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
.line 532
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p0, "[]"
|
|
|
|
return-object p0
|
|
|
|
.line 535
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray;->length()I
|
|
|
|
move-result v1
|
|
|
|
mul-int/lit8 v1, v1, 0x5
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
const/16 v1, 0x5b
|
|
|
|
.line 536
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
iget v3, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
aget v2, v2, v3
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/google/common/primitives/ImmutableIntArray;->start:I
|
|
|
|
:goto_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
iget v2, p0, Lcom/google/common/primitives/ImmutableIntArray;->end:I
|
|
|
|
if-ge v1, v2, :cond_1
|
|
|
|
const-string v2, ", "
|
|
|
|
.line 539
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/google/common/primitives/ImmutableIntArray;->array:[I
|
|
|
|
aget v3, v3, v1
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/16 p0, 0x5d
|
|
|
|
.line 541
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
.line 542
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public trimmed()Lcom/google/common/primitives/ImmutableIntArray;
|
|
.locals 1
|
|
|
|
.line 552
|
|
invoke-direct {p0}, Lcom/google/common/primitives/ImmutableIntArray;->isPartialView()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
new-instance v0, Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray;->toArray()[I
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/primitives/ImmutableIntArray;-><init>([I)V
|
|
|
|
move-object p0, v0
|
|
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method writeReplace()Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 560
|
|
invoke-virtual {p0}, Lcom/google/common/primitives/ImmutableIntArray;->trimmed()Lcom/google/common/primitives/ImmutableIntArray;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|