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.
2087 lines
51 KiB
2087 lines
51 KiB
.class public final Lcom/google/common/collect/Iterables; |
|
.super Ljava/lang/Object; |
|
.source "Iterables.java" |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
emulated = true |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/google/common/collect/Iterables$ConsumingQueueIterator;, |
|
Lcom/google/common/collect/Iterables$UnmodifiableIterable; |
|
} |
|
.end annotation |
|
|
|
|
|
# direct methods |
|
.method private constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 61 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic access$100(Ljava/lang/Iterable;)Ljava/util/Iterator; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 60 |
|
invoke-static {p0}, Lcom/google/common/collect/Iterables;->iterators(Ljava/lang/Iterable;)Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic access$300()Lcom/google/common/base/Function; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 60 |
|
invoke-static {}, Lcom/google/common/collect/Iterables;->toIterator()Lcom/google/common/base/Function; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static addAll(Ljava/util/Collection;Ljava/lang/Iterable;)Z |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/util/Collection", |
|
"<TT;>;", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 350 |
|
instance-of v0, p1, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 351 |
|
invoke-static {p1}, Lcom/google/common/collect/Collections2;->cast(Ljava/lang/Iterable;)Ljava/util/Collection; |
|
|
|
move-result-object v0 |
|
|
|
.line 352 |
|
invoke-interface {p0, v0}, Ljava/util/Collection;->addAll(Ljava/util/Collection;)Z |
|
|
|
move-result v0 |
|
|
|
.line 354 |
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/Iterable; |
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {p0, v0}, Lcom/google/common/collect/Iterators;->addAll(Ljava/util/Collection;Ljava/util/Iterator;)Z |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static all(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Z |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 632 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->all(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public static any(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Z |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 623 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->any(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public static concat(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 494 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 495 |
|
new-instance v0, Lcom/google/common/collect/Iterables$2; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/Iterables$2;-><init>(Ljava/lang/Iterable;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static concat(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 435 |
|
invoke-static {p0, p1}, Lcom/google/common/collect/ImmutableList;->of(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->concat(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static concat(Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 449 |
|
invoke-static {p0, p1, p2}, Lcom/google/common/collect/ImmutableList;->of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->concat(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static concat(Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 465 |
|
invoke-static {p0, p1, p2, p3}, Lcom/google/common/collect/ImmutableList;->of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->concat(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static varargs concat([Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">([", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 479 |
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableList;->copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->concat(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static consumingIterable(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 941 |
|
instance-of v0, p0, Ljava/util/Queue; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 942 |
|
new-instance v0, Lcom/google/common/collect/Iterables$12; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/Iterables$12;-><init>(Ljava/lang/Iterable;)V |
|
|
|
.line 957 |
|
:goto_0 |
|
return-object v0 |
|
|
|
.line 955 |
|
:cond_0 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 957 |
|
new-instance v0, Lcom/google/common/collect/Iterables$13; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/Iterables$13;-><init>(Ljava/lang/Iterable;)V |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static contains(Ljava/lang/Iterable;Ljava/lang/Object;)Z |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;", |
|
"Ljava/lang/Object;", |
|
")Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 118 |
|
instance-of v0, p0, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 119 |
|
check-cast p0, Ljava/util/Collection; |
|
|
|
.line 120 |
|
invoke-static {p0, p1}, Lcom/google/common/collect/Collections2;->safeContains(Ljava/util/Collection;Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
.line 122 |
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->contains(Ljava/util/Iterator;Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static cycle(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 391 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 392 |
|
new-instance v0, Lcom/google/common/collect/Iterables$1; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/Iterables$1;-><init>(Ljava/lang/Iterable;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static varargs cycle([Ljava/lang/Object;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">([TT;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 422 |
|
invoke-static {p0}, Lcom/google/common/collect/Lists;->newArrayList([Ljava/lang/Object;)Ljava/util/ArrayList; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->cycle(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static elementsEqual(Ljava/lang/Iterable;Ljava/lang/Iterable;)Z |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;", |
|
"Ljava/lang/Iterable", |
|
"<*>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 259 |
|
instance-of v0, p0, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
instance-of v0, p1, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
move-object v0, p0 |
|
|
|
.line 260 |
|
check-cast v0, Ljava/util/Collection; |
|
|
|
move-object v1, p1 |
|
|
|
.line 261 |
|
check-cast v1, Ljava/util/Collection; |
|
|
|
.line 262 |
|
invoke-interface {v0}, Ljava/util/Collection;->size()I |
|
|
|
move-result v0 |
|
|
|
invoke-interface {v1}, Ljava/util/Collection;->size()I |
|
|
|
move-result v1 |
|
|
|
if-eq v0, v1, :cond_0 |
|
|
|
.line 263 |
|
const/4 v0, 0x0 |
|
|
|
.line 266 |
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0, v1}, Lcom/google/common/collect/Iterators;->elementsEqual(Ljava/util/Iterator;Ljava/util/Iterator;)Z |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static filter(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 584 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 585 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 586 |
|
new-instance v0, Lcom/google/common/collect/Iterables$6; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Iterables$6;-><init>(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static filter(Ljava/lang/Iterable;Ljava/lang/Class;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation build Lcom/google/common/annotations/GwtIncompatible; |
|
value = "Class.isInstance" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<*>;", |
|
"Ljava/lang/Class", |
|
"<TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 608 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 609 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 610 |
|
new-instance v0, Lcom/google/common/collect/Iterables$7; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Iterables$7;-><init>(Ljava/lang/Iterable;Ljava/lang/Class;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static find(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;)TT;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 646 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->find(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static find(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.param p2 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;TT;)TT;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
|
|
.prologue |
|
.line 660 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1, p2}, Lcom/google/common/collect/Iterators;->find(Ljava/util/Iterator;Lcom/google/common/base/Predicate;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static frequency(Ljava/lang/Iterable;Ljava/lang/Object;)I |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;", |
|
"Ljava/lang/Object;", |
|
")I" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 365 |
|
instance-of v0, p0, Lcom/google/common/collect/Multiset; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 366 |
|
check-cast p0, Lcom/google/common/collect/Multiset; |
|
|
|
invoke-interface {p0, p1}, Lcom/google/common/collect/Multiset;->count(Ljava/lang/Object;)I |
|
|
|
move-result v0 |
|
|
|
.line 370 |
|
:goto_0 |
|
return v0 |
|
|
|
.line 367 |
|
:cond_0 |
|
instance-of v0, p0, Ljava/util/Set; |
|
|
|
if-eqz v0, :cond_2 |
|
|
|
.line 368 |
|
check-cast p0, Ljava/util/Set; |
|
|
|
invoke-interface {p0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
const/4 v0, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
:cond_1 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
|
|
.line 370 |
|
:cond_2 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->frequency(Ljava/util/Iterator;Ljava/lang/Object;)I |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static get(Ljava/lang/Iterable;I)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;I)TT;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 727 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 728 |
|
instance-of v0, p0, Ljava/util/List; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
check-cast p0, Ljava/util/List; |
|
|
|
invoke-interface {p0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
:goto_0 |
|
return-object v0 |
|
|
|
:cond_0 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->get(Ljava/util/Iterator;I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static get(Ljava/lang/Iterable;ILjava/lang/Object;)Ljava/lang/Object; |
|
.locals 2 |
|
.param p2 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;ITT;)TT;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
|
|
.prologue |
|
.line 748 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 749 |
|
invoke-static {p1}, Lcom/google/common/collect/Iterators;->checkNonnegative(I)V |
|
|
|
.line 750 |
|
instance-of v0, p0, Ljava/util/List; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 751 |
|
invoke-static {p0}, Lcom/google/common/collect/Lists;->cast(Ljava/lang/Iterable;)Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
.line 752 |
|
invoke-interface {v0}, Ljava/util/List;->size()I |
|
|
|
move-result v1 |
|
|
|
if-ge p1, v1, :cond_0 |
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object p2 |
|
|
|
.line 756 |
|
:cond_0 |
|
:goto_0 |
|
return-object p2 |
|
|
|
.line 754 |
|
:cond_1 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
.line 755 |
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->advance(Ljava/util/Iterator;I)I |
|
|
|
.line 756 |
|
invoke-static {v0, p2}, Lcom/google/common/collect/Iterators;->getNext(Ljava/util/Iterator;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object p2 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static getFirst(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;TT;)TT;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
|
|
.prologue |
|
.line 775 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->getNext(Ljava/util/Iterator;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static getLast(Ljava/lang/Iterable;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;)TT;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 786 |
|
instance-of v0, p0, Ljava/util/List; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 787 |
|
check-cast p0, Ljava/util/List; |
|
|
|
.line 788 |
|
invoke-interface {p0}, Ljava/util/List;->isEmpty()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 789 |
|
new-instance v0, Ljava/util/NoSuchElementException; |
|
|
|
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V |
|
|
|
throw v0 |
|
|
|
.line 791 |
|
:cond_0 |
|
invoke-static {p0}, Lcom/google/common/collect/Iterables;->getLastInNonemptyList(Ljava/util/List;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
.line 794 |
|
:goto_0 |
|
return-object v0 |
|
|
|
:cond_1 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterators;->getLast(Ljava/util/Iterator;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static getLast(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;TT;)TT;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
|
|
.prologue |
|
.line 807 |
|
instance-of v0, p0, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 808 |
|
invoke-static {p0}, Lcom/google/common/collect/Collections2;->cast(Ljava/lang/Iterable;)Ljava/util/Collection; |
|
|
|
move-result-object v0 |
|
|
|
.line 809 |
|
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 816 |
|
:goto_0 |
|
return-object p1 |
|
|
|
.line 811 |
|
:cond_0 |
|
instance-of v0, p0, Ljava/util/List; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 812 |
|
invoke-static {p0}, Lcom/google/common/collect/Lists;->cast(Ljava/lang/Iterable;)Ljava/util/List; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->getLastInNonemptyList(Ljava/util/List;)Ljava/lang/Object; |
|
|
|
move-result-object p1 |
|
|
|
goto :goto_0 |
|
|
|
.line 816 |
|
:cond_1 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->getLast(Ljava/util/Iterator;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object p1 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method private static getLastInNonemptyList(Ljava/util/List;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/util/List", |
|
"<TT;>;)TT;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 820 |
|
invoke-interface {p0}, Ljava/util/List;->size()I |
|
|
|
move-result v0 |
|
|
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static getOnlyElement(Ljava/lang/Iterable;)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;)TT;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 289 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterators;->getOnlyElement(Ljava/util/Iterator;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static getOnlyElement(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object; |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;TT;)TT;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
|
|
.prologue |
|
.line 302 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->getOnlyElement(Ljava/util/Iterator;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static indexOf(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)I |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;)I" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 691 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->indexOf(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)I |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public static isEmpty(Ljava/lang/Iterable;)Z |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 998 |
|
instance-of v0, p0, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 999 |
|
check-cast p0, Ljava/util/Collection; |
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->isEmpty()Z |
|
|
|
move-result v0 |
|
|
|
.line 1001 |
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_1 |
|
|
|
const/4 v0, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
:cond_1 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method private static iterators(Ljava/lang/Iterable;)Ljava/util/Iterator; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;>;)", |
|
"Ljava/util/Iterator", |
|
"<", |
|
"Ljava/util/Iterator", |
|
"<+TT;>;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 508 |
|
new-instance v0, Lcom/google/common/collect/Iterables$3; |
|
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v1 |
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/collect/Iterables$3;-><init>(Ljava/util/Iterator;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static limit(Ljava/lang/Iterable;I)Ljava/lang/Iterable; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;I)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 911 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 912 |
|
if-ltz p1, :cond_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
const-string v1, "limit is negative" |
|
|
|
invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V |
|
|
|
.line 913 |
|
new-instance v0, Lcom/google/common/collect/Iterables$11; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Iterables$11;-><init>(Ljava/lang/Iterable;I)V |
|
|
|
return-object v0 |
|
|
|
.line 912 |
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static mergeSorted(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/lang/Iterable; |
|
.locals 3 |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;>;", |
|
"Ljava/util/Comparator", |
|
"<-TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 1020 |
|
const-string v0, "iterables" |
|
|
|
invoke-static {p0, v0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 1021 |
|
const-string v0, "comparator" |
|
|
|
invoke-static {p1, v0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 1022 |
|
new-instance v0, Lcom/google/common/collect/Iterables$14; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Iterables$14;-><init>(Ljava/lang/Iterable;Ljava/util/Comparator;)V |
|
|
|
.line 1030 |
|
new-instance v1, Lcom/google/common/collect/Iterables$UnmodifiableIterable; |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-direct {v1, v0, v2}, Lcom/google/common/collect/Iterables$UnmodifiableIterable;-><init>(Ljava/lang/Iterable;Lcom/google/common/collect/Iterables$1;)V |
|
|
|
return-object v1 |
|
.end method |
|
|
|
.method public static paddedPartition(Ljava/lang/Iterable;I)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;I)", |
|
"Ljava/lang/Iterable", |
|
"<", |
|
"Ljava/util/List", |
|
"<TT;>;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 568 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 569 |
|
if-lez p1, :cond_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V |
|
|
|
.line 570 |
|
new-instance v0, Lcom/google/common/collect/Iterables$5; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Iterables$5;-><init>(Ljava/lang/Iterable;I)V |
|
|
|
return-object v0 |
|
|
|
.line 569 |
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static partition(Ljava/lang/Iterable;I)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;I)", |
|
"Ljava/lang/Iterable", |
|
"<", |
|
"Ljava/util/List", |
|
"<TT;>;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 539 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 540 |
|
if-lez p1, :cond_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
invoke-static {v0}, Lcom/google/common/base/Preconditions;->checkArgument(Z)V |
|
|
|
.line 541 |
|
new-instance v0, Lcom/google/common/collect/Iterables$4; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Iterables$4;-><init>(Ljava/lang/Iterable;I)V |
|
|
|
return-object v0 |
|
|
|
.line 540 |
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static removeAll(Ljava/lang/Iterable;Ljava/util/Collection;)Z |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;", |
|
"Ljava/util/Collection", |
|
"<*>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 138 |
|
instance-of v0, p0, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
check-cast p0, Ljava/util/Collection; |
|
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/util/Collection; |
|
|
|
invoke-interface {p0, v0}, Ljava/util/Collection;->removeAll(Ljava/util/Collection;)Z |
|
|
|
move-result v0 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->removeAll(Ljava/util/Iterator;Ljava/util/Collection;)Z |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method static removeFirstMatching(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Object; |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;)TT;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
|
|
.prologue |
|
.line 238 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 239 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v1 |
|
|
|
.line 240 |
|
:cond_0 |
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 241 |
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
.line 242 |
|
invoke-interface {p1, v0}, Lcom/google/common/base/Predicate;->apply(Ljava/lang/Object;)Z |
|
|
|
move-result v2 |
|
|
|
if-eqz v2, :cond_0 |
|
|
|
.line 243 |
|
invoke-interface {v1}, Ljava/util/Iterator;->remove()V |
|
|
|
.line 247 |
|
:goto_0 |
|
return-object v0 |
|
|
|
:cond_1 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static removeIf(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Z |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 176 |
|
instance-of v0, p0, Ljava/util/RandomAccess; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
instance-of v0, p0, Ljava/util/List; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 177 |
|
check-cast p0, Ljava/util/List; |
|
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/google/common/base/Predicate; |
|
|
|
invoke-static {p0, v0}, Lcom/google/common/collect/Iterables;->removeIfFromRandomAccessList(Ljava/util/List;Lcom/google/common/base/Predicate;)Z |
|
|
|
move-result v0 |
|
|
|
.line 180 |
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->removeIf(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Z |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method private static removeIfFromRandomAccessList(Ljava/util/List;Lcom/google/common/base/Predicate;)Z |
|
.locals 6 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/util/List", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
const/4 v3, 0x1 |
|
|
|
const/4 v1, 0x0 |
|
|
|
.line 187 |
|
move v0, v1 |
|
|
|
move v2, v1 |
|
|
|
.line 190 |
|
:goto_0 |
|
invoke-interface {p0}, Ljava/util/List;->size()I |
|
|
|
move-result v4 |
|
|
|
if-ge v2, v4, :cond_2 |
|
|
|
.line 191 |
|
invoke-interface {p0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v4 |
|
|
|
.line 192 |
|
invoke-interface {p1, v4}, Lcom/google/common/base/Predicate;->apply(Ljava/lang/Object;)Z |
|
|
|
move-result v5 |
|
|
|
if-nez v5, :cond_1 |
|
|
|
.line 193 |
|
if-le v2, v0, :cond_0 |
|
|
|
.line 195 |
|
:try_start_0 |
|
invoke-interface {p0, v0, v4}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object; |
|
:try_end_0 |
|
.catch Ljava/lang/UnsupportedOperationException; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 201 |
|
:cond_0 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
.line 190 |
|
:cond_1 |
|
add-int/lit8 v2, v2, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 196 |
|
:catch_0 |
|
move-exception v1 |
|
|
|
.line 197 |
|
invoke-static {p0, p1, v0, v2}, Lcom/google/common/collect/Iterables;->slowRemoveIfForRemainingElements(Ljava/util/List;Lcom/google/common/base/Predicate;II)V |
|
|
|
.line 207 |
|
:goto_1 |
|
return v3 |
|
|
|
.line 206 |
|
:cond_2 |
|
invoke-interface {p0}, Ljava/util/List;->size()I |
|
|
|
move-result v4 |
|
|
|
invoke-interface {p0, v0, v4}, Ljava/util/List;->subList(II)Ljava/util/List; |
|
|
|
move-result-object v4 |
|
|
|
invoke-interface {v4}, Ljava/util/List;->clear()V |
|
|
|
.line 207 |
|
if-eq v2, v0, :cond_3 |
|
|
|
move v1, v3 |
|
|
|
:cond_3 |
|
move v3, v1 |
|
|
|
goto :goto_1 |
|
.end method |
|
|
|
.method public static retainAll(Ljava/lang/Iterable;Ljava/util/Collection;)Z |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;", |
|
"Ljava/util/Collection", |
|
"<*>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 156 |
|
instance-of v0, p0, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
check-cast p0, Ljava/util/Collection; |
|
|
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/util/Collection; |
|
|
|
invoke-interface {p0, v0}, Ljava/util/Collection;->retainAll(Ljava/util/Collection;)Z |
|
|
|
move-result v0 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->retainAll(Ljava/util/Iterator;Ljava/util/Collection;)Z |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static size(Ljava/lang/Iterable;)I |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;)I" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 108 |
|
instance-of v0, p0, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
check-cast p0, Ljava/util/Collection; |
|
|
|
invoke-interface {p0}, Ljava/util/Collection;->size()I |
|
|
|
move-result v0 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterators;->size(Ljava/util/Iterator;)I |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static skip(Ljava/lang/Iterable;I)Ljava/lang/Iterable; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;I)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 845 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 846 |
|
if-ltz p1, :cond_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
const-string v1, "number to skip cannot be negative" |
|
|
|
invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V |
|
|
|
.line 848 |
|
instance-of v0, p0, Ljava/util/List; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 849 |
|
check-cast p0, Ljava/util/List; |
|
|
|
.line 850 |
|
new-instance v0, Lcom/google/common/collect/Iterables$9; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Iterables$9;-><init>(Ljava/util/List;I)V |
|
|
|
.line 860 |
|
:goto_1 |
|
return-object v0 |
|
|
|
.line 846 |
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
|
|
.line 860 |
|
:cond_1 |
|
new-instance v0, Lcom/google/common/collect/Iterables$10; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Iterables$10;-><init>(Ljava/lang/Iterable;I)V |
|
|
|
goto :goto_1 |
|
.end method |
|
|
|
.method private static slowRemoveIfForRemainingElements(Ljava/util/List;Lcom/google/common/base/Predicate;II)V |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/util/List", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;II)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 222 |
|
invoke-interface {p0}, Ljava/util/List;->size()I |
|
|
|
move-result v0 |
|
|
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
:goto_0 |
|
if-le v0, p3, :cond_1 |
|
|
|
.line 223 |
|
invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
invoke-interface {p1, v1}, Lcom/google/common/base/Predicate;->apply(Ljava/lang/Object;)Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
.line 224 |
|
invoke-interface {p0, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object; |
|
|
|
.line 222 |
|
:cond_0 |
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 228 |
|
:cond_1 |
|
add-int/lit8 v0, p3, -0x1 |
|
|
|
:goto_1 |
|
if-lt v0, p2, :cond_2 |
|
|
|
.line 229 |
|
invoke-interface {p0, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object; |
|
|
|
.line 228 |
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
goto :goto_1 |
|
|
|
.line 231 |
|
:cond_2 |
|
return-void |
|
.end method |
|
|
|
.method static toArray(Ljava/lang/Iterable;)[Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;)[", |
|
"Ljava/lang/Object;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 328 |
|
invoke-static {p0}, Lcom/google/common/collect/Iterables;->toCollection(Ljava/lang/Iterable;)Ljava/util/Collection; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->toArray()[Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static toArray(Ljava/lang/Iterable;Ljava/lang/Class;)[Ljava/lang/Object; |
|
.locals 2 |
|
.annotation build Lcom/google/common/annotations/GwtIncompatible; |
|
value = "Array.newInstance(Class, int)" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;", |
|
"Ljava/lang/Class", |
|
"<TT;>;)[TT;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 315 |
|
invoke-static {p0}, Lcom/google/common/collect/Iterables;->toCollection(Ljava/lang/Iterable;)Ljava/util/Collection; |
|
|
|
move-result-object v0 |
|
|
|
.line 316 |
|
invoke-interface {v0}, Ljava/util/Collection;->size()I |
|
|
|
move-result v1 |
|
|
|
invoke-static {p1, v1}, Lcom/google/common/collect/ObjectArrays;->newArray(Ljava/lang/Class;I)[Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
.line 317 |
|
invoke-interface {v0, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private static toCollection(Ljava/lang/Iterable;)Ljava/util/Collection; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<E:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TE;>;)", |
|
"Ljava/util/Collection", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 337 |
|
instance-of v0, p0, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
check-cast p0, Ljava/util/Collection; |
|
|
|
:goto_0 |
|
return-object p0 |
|
|
|
:cond_0 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Lists;->newArrayList(Ljava/util/Iterator;)Ljava/util/ArrayList; |
|
|
|
move-result-object p0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method private static toIterator()Lcom/google/common/base/Function; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">()", |
|
"Lcom/google/common/base/Function", |
|
"<", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;", |
|
"Ljava/util/Iterator", |
|
"<+TT;>;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 1037 |
|
new-instance v0, Lcom/google/common/collect/Iterables$15; |
|
|
|
invoke-direct {v0}, Lcom/google/common/collect/Iterables$15;-><init>()V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static toString(Ljava/lang/Iterable;)Ljava/lang/String; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<*>;)", |
|
"Ljava/lang/String;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 278 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterators;->toString(Ljava/util/Iterator;)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static transform(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<F:", |
|
"Ljava/lang/Object;", |
|
"T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TF;>;", |
|
"Lcom/google/common/base/Function", |
|
"<-TF;+TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 708 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 709 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 710 |
|
new-instance v0, Lcom/google/common/collect/Iterables$8; |
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/common/collect/Iterables$8;-><init>(Ljava/lang/Iterable;Lcom/google/common/base/Function;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static tryFind(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Lcom/google/common/base/Optional; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TT;>;)", |
|
"Lcom/google/common/base/Optional", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 675 |
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterators;->tryFind(Ljava/util/Iterator;Lcom/google/common/base/Predicate;)Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static unmodifiableIterable(Lcom/google/common/collect/ImmutableCollection;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<E:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/collect/ImmutableCollection", |
|
"<TE;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljava/lang/Deprecated; |
|
.end annotation |
|
|
|
.prologue |
|
.line 82 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Ljava/lang/Iterable; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static unmodifiableIterable(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 66 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 67 |
|
instance-of v0, p0, Lcom/google/common/collect/Iterables$UnmodifiableIterable; |
|
|
|
if-nez v0, :cond_0 |
|
|
|
instance-of v0, p0, Lcom/google/common/collect/ImmutableCollection; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 71 |
|
:cond_0 |
|
:goto_0 |
|
return-object p0 |
|
|
|
:cond_1 |
|
new-instance v0, Lcom/google/common/collect/Iterables$UnmodifiableIterable; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-direct {v0, p0, v1}, Lcom/google/common/collect/Iterables$UnmodifiableIterable;-><init>(Ljava/lang/Iterable;Lcom/google/common/collect/Iterables$1;)V |
|
|
|
move-object p0, v0 |
|
|
|
goto :goto_0 |
|
.end method
|
|
|