what-the-bank/sources/com/google/android/gms/common/util/ScopeUtil.java

23 lines
741 B
Java

package com.google.android.gms.common.util;
import com.google.android.gms.common.api.Scope;
import com.google.android.gms.common.internal.Preconditions;
import java.util.Set;
/* loaded from: classes2.dex */
public final class ScopeUtil {
public static String[] toScopeString(Set<Scope> set) {
Preconditions.checkNotNull(set, "scopes can't be null.");
Scope[] scopeArr = (Scope[]) set.toArray(new Scope[set.size()]);
Preconditions.checkNotNull(scopeArr, "scopes can't be null.");
String[] strArr = new String[scopeArr.length];
for (int i = 0; i < scopeArr.length; i++) {
strArr[i] = scopeArr[i].getScopeUri();
}
return strArr;
}
private ScopeUtil() {
}
}