jimu-decompiled/sources/com/google/android/gms/common/util/CollectionUtils.java
2025-05-13 19:24:51 +02:00

31 lines
696 B
Java

package com.google.android.gms.common.util;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/* loaded from: classes.dex */
public final class CollectionUtils {
@Deprecated
public static <T> List<T> a() {
return Collections.emptyList();
}
@Deprecated
public static <T> List<T> a(T t) {
return Collections.singletonList(t);
}
@Deprecated
public static <T> List<T> a(T... tArr) {
int length = tArr.length;
if (length == 0) {
return a();
}
if (length != 1) {
return Collections.unmodifiableList(Arrays.asList(tArr));
}
return a(tArr[0]);
}
}