You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
218 lines
4.8 KiB
218 lines
4.8 KiB
.class public abstract Lcom/google/common/collect/ImmutableCollection$Builder; |
|
.super Ljava/lang/Object; |
|
.source "ImmutableCollection.java" |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingClass; |
|
value = Lcom/google/common/collect/ImmutableCollection; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x409 |
|
name = "Builder" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<E:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Ljava/lang/Object;" |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field static final DEFAULT_INITIAL_CAPACITY:I = 0x4 |
|
|
|
|
|
# direct methods |
|
.method constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 234 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 235 |
|
return-void |
|
.end method |
|
|
|
.method static expandedCapacity(II)I |
|
.locals 2 |
|
|
|
.prologue |
|
.line 219 |
|
if-gez p1, :cond_0 |
|
|
|
.line 220 |
|
new-instance v0, Ljava/lang/AssertionError; |
|
|
|
const-string v1, "cannot store more than MAX_VALUE elements" |
|
|
|
invoke-direct {v0, v1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V |
|
|
|
throw v0 |
|
|
|
.line 223 |
|
:cond_0 |
|
shr-int/lit8 v0, p0, 0x1 |
|
|
|
add-int/2addr v0, p0 |
|
|
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
.line 224 |
|
if-ge v0, p1, :cond_1 |
|
|
|
.line 225 |
|
add-int/lit8 v0, p1, -0x1 |
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->highestOneBit(I)I |
|
|
|
move-result v0 |
|
|
|
shl-int/lit8 v0, v0, 0x1 |
|
|
|
.line 227 |
|
:cond_1 |
|
if-gez v0, :cond_2 |
|
|
|
.line 228 |
|
const v0, 0x7fffffff |
|
|
|
.line 231 |
|
:cond_2 |
|
return v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public abstract add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection$Builder; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TE;)", |
|
"Lcom/google/common/collect/ImmutableCollection$Builder", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
.end method |
|
|
|
.method public varargs add([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection$Builder; |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"([TE;)", |
|
"Lcom/google/common/collect/ImmutableCollection$Builder", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 262 |
|
array-length v1, p1 |
|
|
|
const/4 v0, 0x0 |
|
|
|
:goto_0 |
|
if-ge v0, v1, :cond_0 |
|
|
|
aget-object v2, p1, v0 |
|
|
|
.line 263 |
|
invoke-virtual {p0, v2}, Lcom/google/common/collect/ImmutableCollection$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection$Builder; |
|
|
|
.line 262 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 265 |
|
:cond_0 |
|
return-object p0 |
|
.end method |
|
|
|
.method public addAll(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableCollection$Builder; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<+TE;>;)", |
|
"Lcom/google/common/collect/ImmutableCollection$Builder", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 281 |
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
:goto_0 |
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
.line 282 |
|
invoke-virtual {p0, v1}, Lcom/google/common/collect/ImmutableCollection$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection$Builder; |
|
|
|
goto :goto_0 |
|
|
|
.line 284 |
|
:cond_0 |
|
return-object p0 |
|
.end method |
|
|
|
.method public addAll(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableCollection$Builder; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/util/Iterator", |
|
"<+TE;>;)", |
|
"Lcom/google/common/collect/ImmutableCollection$Builder", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 300 |
|
:goto_0 |
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 301 |
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {p0, v0}, Lcom/google/common/collect/ImmutableCollection$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableCollection$Builder; |
|
|
|
goto :goto_0 |
|
|
|
.line 303 |
|
:cond_0 |
|
return-object p0 |
|
.end method |
|
|
|
.method public abstract build()Lcom/google/common/collect/ImmutableCollection; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableCollection", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
.end method
|
|
|