u.smali
.class public final Lcom/google/common/collect/u;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method private static a(Ljava/lang/Iterable;)Ljava/util/Collection;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Iterable<",
"TE;>;)",
"Ljava/util/Collection<",
"TE;>;"
}
.end annotation
instance-of v0, p0, Ljava/util/Collection;
if-eqz v0, :cond_7
check-cast p0, Ljava/util/Collection;
goto :goto_f
:cond_7
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
invoke-static {p0}, Lcom/google/common/collect/w;->g(Ljava/util/Iterator;)Ljava/util/ArrayList;
move-result-object p0
:goto_f
return-object p0
.end method
.method public static b(Ljava/lang/Iterable;Ljava/lang/Object;)Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/lang/Iterable<",
"+TT;>;TT;)TT;"
}
.end annotation
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
invoke-static {p0, p1}, Lcom/google/common/collect/v;->c(Ljava/util/Iterator;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method static c(Ljava/lang/Iterable;)[Ljava/lang/Object;
.registers 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"*>;)[",
"Ljava/lang/Object;"
}
.end annotation
invoke-static {p0}, Lcom/google/common/collect/u;->a(Ljava/lang/Iterable;)Ljava/util/Collection;
move-result-object p0
invoke-interface {p0}, Ljava/util/Collection;->toArray()[Ljava/lang/Object;
move-result-object p0
return-object p0
.end method