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.
940 lines
25 KiB
940 lines
25 KiB
.class public abstract Lcom/google/common/collect/FluentIterable; |
|
.super Ljava/lang/Object; |
|
.source "FluentIterable.java" |
|
|
|
# interfaces |
|
.implements Ljava/lang/Iterable; |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
emulated = true |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/MemberClasses; |
|
value = { |
|
Lcom/google/common/collect/FluentIterable$FromIterableFunction; |
|
} |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<E:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Ljava/lang/Object;", |
|
"Ljava/lang/Iterable", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field private final iterable:Ljava/lang/Iterable; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/lang/Iterable", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
|
|
# direct methods |
|
.method protected constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 77 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 78 |
|
iput-object p0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
.line 79 |
|
return-void |
|
.end method |
|
|
|
.method constructor <init>(Ljava/lang/Iterable;)V |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Iterable", |
|
"<TE;>;)V" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 81 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
.line 82 |
|
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; |
|
|
|
iput-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
.line 83 |
|
return-void |
|
.end method |
|
|
|
.method public static from(Lcom/google/common/collect/FluentIterable;)Lcom/google/common/collect/FluentIterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<E:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TE;>;)", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljava/lang/Deprecated; |
|
.end annotation |
|
|
|
.prologue |
|
.line 109 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/google/common/collect/FluentIterable; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<E:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<TE;>;)", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 90 |
|
instance-of v0, p0, Lcom/google/common/collect/FluentIterable; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
check-cast p0, Lcom/google/common/collect/FluentIterable; |
|
|
|
:goto_0 |
|
return-object p0 |
|
|
|
:cond_0 |
|
new-instance v0, Lcom/google/common/collect/FluentIterable$1; |
|
|
|
invoke-direct {v0, p0, p0}, Lcom/google/common/collect/FluentIterable$1;-><init>(Ljava/lang/Iterable;Ljava/lang/Iterable;)V |
|
|
|
move-object p0, v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public final allMatch(Lcom/google/common/base/Predicate;)Z |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TE;>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 186 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->all(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public final anyMatch(Lcom/google/common/base/Predicate;)Z |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TE;>;)Z" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 178 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->any(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public final contains(Ljava/lang/Object;)Z |
|
.locals 1 |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
|
|
.prologue |
|
.line 133 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->contains(Ljava/lang/Iterable;Ljava/lang/Object;)Z |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public final copyInto(Ljava/util/Collection;)Ljava/util/Collection; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<C::", |
|
"Ljava/util/Collection", |
|
"<-TE;>;>(TC;)TC;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 448 |
|
invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 449 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
instance-of v0, v0, Ljava/util/Collection; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 450 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Collections2;->cast(Ljava/lang/Iterable;)Ljava/util/Collection; |
|
|
|
move-result-object v0 |
|
|
|
invoke-interface {p1, v0}, Ljava/util/Collection;->addAll(Ljava/util/Collection;)Z |
|
|
|
.line 456 |
|
:cond_0 |
|
return-object p1 |
|
|
|
.line 452 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-interface {v0}, 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 453 |
|
invoke-interface {p1, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public final cycle()Lcom/google/common/collect/FluentIterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/CheckReturnValue; |
|
.end annotation |
|
|
|
.prologue |
|
.line 151 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->cycle(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final filter(Lcom/google/common/base/Predicate;)Lcom/google/common/collect/FluentIterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TE;>;)", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/CheckReturnValue; |
|
.end annotation |
|
|
|
.prologue |
|
.line 160 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->filter(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final filter(Ljava/lang/Class;)Lcom/google/common/collect/FluentIterable; |
|
.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/Class", |
|
"<TT;>;)", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/CheckReturnValue; |
|
.end annotation |
|
|
|
.prologue |
|
.line 171 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->filter(Ljava/lang/Iterable;Ljava/lang/Class;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final first()Lcom/google/common/base/Optional; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/base/Optional", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 236 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
.line 237 |
|
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 v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/base/Optional;->of(Ljava/lang/Object;)Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
:goto_0 |
|
return-object v0 |
|
|
|
:cond_0 |
|
invoke-static {}, Lcom/google/common/base/Optional;->absent()Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public final firstMatch(Lcom/google/common/base/Predicate;)Lcom/google/common/base/Optional; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lcom/google/common/base/Predicate", |
|
"<-TE;>;)", |
|
"Lcom/google/common/base/Optional", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 197 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->tryFind(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final get(I)Ljava/lang/Object; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(I)TE;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 468 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->get(Ljava/lang/Iterable;I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final index(Lcom/google/common/base/Function;)Lcom/google/common/collect/ImmutableListMultimap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/base/Function", |
|
"<-TE;TK;>;)", |
|
"Lcom/google/common/collect/ImmutableListMultimap", |
|
"<TK;TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 408 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Multimaps;->index(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Lcom/google/common/collect/ImmutableListMultimap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final isEmpty()Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 324 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-interface {v0}, 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_0 |
|
|
|
const/4 v0, 0x1 |
|
|
|
:goto_0 |
|
return v0 |
|
|
|
:cond_0 |
|
const/4 v0, 0x0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public final last()Lcom/google/common/base/Optional; |
|
.locals 3 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/base/Optional", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 253 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
instance-of v0, v0, Ljava/util/List; |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 254 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
check-cast v0, Ljava/util/List; |
|
|
|
.line 255 |
|
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_0 |
|
|
|
.line 256 |
|
invoke-static {}, Lcom/google/common/base/Optional;->absent()Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
.line 278 |
|
:goto_0 |
|
return-object v0 |
|
|
|
.line 258 |
|
:cond_0 |
|
invoke-interface {v0}, Ljava/util/List;->size()I |
|
|
|
move-result v1 |
|
|
|
add-int/lit8 v1, v1, -0x1 |
|
|
|
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/base/Optional;->of(Ljava/lang/Object;)Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 260 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; |
|
|
|
move-result-object v0 |
|
|
|
.line 261 |
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_2 |
|
|
|
.line 262 |
|
invoke-static {}, Lcom/google/common/base/Optional;->absent()Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 270 |
|
:cond_2 |
|
iget-object v1, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
instance-of v1, v1, Ljava/util/SortedSet; |
|
|
|
if-eqz v1, :cond_3 |
|
|
|
.line 271 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
check-cast v0, Ljava/util/SortedSet; |
|
|
|
.line 272 |
|
invoke-interface {v0}, Ljava/util/SortedSet;->last()Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/base/Optional;->of(Ljava/lang/Object;)Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 276 |
|
:cond_3 |
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
.line 277 |
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z |
|
|
|
move-result v2 |
|
|
|
if-nez v2, :cond_3 |
|
|
|
.line 278 |
|
invoke-static {v1}, Lcom/google/common/base/Optional;->of(Ljava/lang/Object;)Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public final limit(I)Lcom/google/common/collect/FluentIterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(I)", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/CheckReturnValue; |
|
.end annotation |
|
|
|
.prologue |
|
.line 317 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->limit(Ljava/lang/Iterable;I)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final size()I |
|
.locals 1 |
|
|
|
.prologue |
|
.line 125 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->size(Ljava/lang/Iterable;)I |
|
|
|
move-result v0 |
|
|
|
return v0 |
|
.end method |
|
|
|
.method public final skip(I)Lcom/google/common/collect/FluentIterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(I)", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/CheckReturnValue; |
|
.end annotation |
|
|
|
.prologue |
|
.line 302 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->skip(Ljava/lang/Iterable;I)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final toArray(Ljava/lang/Class;)[Ljava/lang/Object; |
|
.locals 1 |
|
.annotation build Lcom/google/common/annotations/GwtIncompatible; |
|
value = "Array.newArray(Class, int)" |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/lang/Class", |
|
"<TE;>;)[TE;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 436 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->toArray(Ljava/lang/Iterable;Ljava/lang/Class;)[Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final toList()Lcom/google/common/collect/ImmutableList; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableList", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 334 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableList;->copyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final toMap(Lcom/google/common/base/Function;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/base/Function", |
|
"<-TE;TV;>;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TE;TV;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 386 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Maps;->toMap(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final toSet()Lcom/google/common/collect/ImmutableSet; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Lcom/google/common/collect/ImmutableSet", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 358 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableSet;->copyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableSet; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final toSortedList(Ljava/util/Comparator;)Lcom/google/common/collect/ImmutableList; |
|
.locals 2 |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/util/Comparator", |
|
"<-TE;>;)", |
|
"Lcom/google/common/collect/ImmutableList", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 348 |
|
invoke-static {p1}, Lcom/google/common/collect/Ordering;->from(Ljava/util/Comparator;)Lcom/google/common/collect/Ordering; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-virtual {v0, v1}, Lcom/google/common/collect/Ordering;->immutableSortedCopy(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final toSortedSet(Ljava/util/Comparator;)Lcom/google/common/collect/ImmutableSortedSet; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Ljava/util/Comparator", |
|
"<-TE;>;)", |
|
"Lcom/google/common/collect/ImmutableSortedSet", |
|
"<TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 372 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {p1, v0}, Lcom/google/common/collect/ImmutableSortedSet;->copyOf(Ljava/util/Comparator;Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableSortedSet; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public toString()Ljava/lang/String; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 118 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->toString(Ljava/lang/Iterable;)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final transform(Lcom/google/common/base/Function;)Lcom/google/common/collect/FluentIterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/base/Function", |
|
"<-TE;TT;>;)", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 209 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Iterables;->transform(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public transformAndConcat(Lcom/google/common/base/Function;)Lcom/google/common/collect/FluentIterable; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/base/Function", |
|
"<-TE;+", |
|
"Ljava/lang/Iterable", |
|
"<+TT;>;>;)", |
|
"Lcom/google/common/collect/FluentIterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 225 |
|
invoke-virtual {p0, p1}, Lcom/google/common/collect/FluentIterable;->transform(Lcom/google/common/base/Function;)Lcom/google/common/collect/FluentIterable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/Iterables;->concat(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Lcom/google/common/collect/FluentIterable;->from(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public final uniqueIndex(Lcom/google/common/base/Function;)Lcom/google/common/collect/ImmutableMap; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<K:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/base/Function", |
|
"<-TE;TK;>;)", |
|
"Lcom/google/common/collect/ImmutableMap", |
|
"<TK;TE;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 424 |
|
iget-object v0, p0, Lcom/google/common/collect/FluentIterable;->iterable:Ljava/lang/Iterable; |
|
|
|
invoke-static {v0, p1}, Lcom/google/common/collect/Maps;->uniqueIndex(Ljava/lang/Iterable;Lcom/google/common/base/Function;)Lcom/google/common/collect/ImmutableMap; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method
|
|
|