- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
191 lines
6.0 KiB
Java
191 lines
6.0 KiB
Java
package com.applovin.impl;
|
|
|
|
import com.applovin.exoplayer2.common.base.Preconditions;
|
|
import java.util.AbstractSet;
|
|
import java.util.Collection;
|
|
import java.util.Collections;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import java.util.Set;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class rj {
|
|
public static Set b() {
|
|
return Collections.newSetFromMap(vc.b());
|
|
}
|
|
|
|
public static abstract class b extends AbstractSet {
|
|
@Override // java.util.AbstractSet, java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public boolean removeAll(Collection collection) {
|
|
return rj.a((Set) this, collection);
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public boolean retainAll(Collection collection) {
|
|
return super.retainAll((Collection) Preconditions.checkNotNull(collection));
|
|
}
|
|
}
|
|
|
|
public static abstract class c extends AbstractSet {
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public final boolean add(Object obj) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public final boolean addAll(Collection collection) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public final void clear() {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public final boolean remove(Object obj) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.AbstractSet, java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public final boolean removeAll(Collection collection) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public final boolean retainAll(Collection collection) {
|
|
throw new UnsupportedOperationException();
|
|
}
|
|
|
|
private c() {
|
|
}
|
|
|
|
public /* synthetic */ c(qj qjVar) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
public class a extends c {
|
|
final /* synthetic */ Set a;
|
|
final /* synthetic */ Set b;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public a(Set set, Set set2) {
|
|
super(null);
|
|
this.a = set;
|
|
this.b = set2;
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.lang.Iterable, java.util.Set
|
|
public pp iterator() {
|
|
return new C0036a();
|
|
}
|
|
|
|
/* renamed from: com.applovin.impl.rj$a$a, reason: collision with other inner class name */
|
|
public class C0036a extends d {
|
|
final Iterator c;
|
|
|
|
public C0036a() {
|
|
this.c = a.this.a.iterator();
|
|
}
|
|
|
|
@Override // com.applovin.impl.d
|
|
public Object a() {
|
|
while (this.c.hasNext()) {
|
|
Object next = this.c.next();
|
|
if (a.this.b.contains(next)) {
|
|
return next;
|
|
}
|
|
}
|
|
return b();
|
|
}
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public int size() {
|
|
Iterator it = this.a.iterator();
|
|
int i = 0;
|
|
while (it.hasNext()) {
|
|
if (this.b.contains(it.next())) {
|
|
i++;
|
|
}
|
|
}
|
|
return i;
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public boolean isEmpty() {
|
|
return Collections.disjoint(this.b, this.a);
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public boolean contains(Object obj) {
|
|
return this.a.contains(obj) && this.b.contains(obj);
|
|
}
|
|
|
|
@Override // java.util.AbstractCollection, java.util.Collection, java.util.Set
|
|
public boolean containsAll(Collection collection) {
|
|
return this.a.containsAll(collection) && this.b.containsAll(collection);
|
|
}
|
|
}
|
|
|
|
public static boolean a(Set set, Object obj) {
|
|
if (set == obj) {
|
|
return true;
|
|
}
|
|
if (obj instanceof Set) {
|
|
Set set2 = (Set) obj;
|
|
try {
|
|
if (set.size() == set2.size()) {
|
|
if (set.containsAll(set2)) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
} catch (ClassCastException | NullPointerException unused) {
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public static int a(Set set) {
|
|
Iterator it = set.iterator();
|
|
int i = 0;
|
|
while (it.hasNext()) {
|
|
Object next = it.next();
|
|
i = ~(~(i + (next != null ? next.hashCode() : 0)));
|
|
}
|
|
return i;
|
|
}
|
|
|
|
public static c a(Set set, Set set2) {
|
|
Preconditions.checkNotNull(set, "set1");
|
|
Preconditions.checkNotNull(set2, "set2");
|
|
return new a(set, set2);
|
|
}
|
|
|
|
public static boolean a(Set set, Collection collection) {
|
|
Preconditions.checkNotNull(collection);
|
|
if ((collection instanceof Set) && collection.size() > set.size()) {
|
|
return xb.a(set.iterator(), collection);
|
|
}
|
|
return a(set, collection.iterator());
|
|
}
|
|
|
|
public static boolean a(Set set, Iterator it) {
|
|
boolean z = false;
|
|
while (it.hasNext()) {
|
|
z |= set.remove(it.next());
|
|
}
|
|
return z;
|
|
}
|
|
|
|
public static HashSet a() {
|
|
return new HashSet();
|
|
}
|
|
|
|
public static HashSet a(int i) {
|
|
return new HashSet(vc.a(i));
|
|
}
|
|
}
|