- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
package com.applovin.impl;
|
|
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
import java.util.NoSuchElementException;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class wb {
|
|
public static String d(Iterable iterable) {
|
|
return xb.d(iterable.iterator());
|
|
}
|
|
|
|
public static Object[] c(Iterable iterable) {
|
|
return a(iterable).toArray();
|
|
}
|
|
|
|
private static Collection a(Iterable iterable) {
|
|
if (iterable instanceof Collection) {
|
|
return (Collection) iterable;
|
|
}
|
|
return ic.a(iterable.iterator());
|
|
}
|
|
|
|
public static Object b(Iterable iterable) {
|
|
if (iterable instanceof List) {
|
|
List list = (List) iterable;
|
|
if (!list.isEmpty()) {
|
|
return a(list);
|
|
}
|
|
throw new NoSuchElementException();
|
|
}
|
|
return xb.b(iterable.iterator());
|
|
}
|
|
|
|
public static Object a(Iterable iterable, Object obj) {
|
|
return xb.a(iterable.iterator(), obj);
|
|
}
|
|
|
|
private static Object a(List list) {
|
|
return list.get(list.size() - 1);
|
|
}
|
|
}
|