- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
18 lines
489 B
Java
18 lines
489 B
Java
package com.google.common.collect;
|
|
|
|
import java.util.Collection;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public abstract class Iterables {
|
|
public static Object[] toArray(Iterable iterable) {
|
|
return castOrCopyToCollection(iterable).toArray();
|
|
}
|
|
|
|
public static Collection castOrCopyToCollection(Iterable iterable) {
|
|
if (iterable instanceof Collection) {
|
|
return (Collection) iterable;
|
|
}
|
|
return Lists.newArrayList(iterable.iterator());
|
|
}
|
|
}
|