- 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
150 lines
4.2 KiB
Java
150 lines
4.2 KiB
Java
package com.applovin.exoplayer2.common.base;
|
|
|
|
import java.io.Serializable;
|
|
import org.checkerframework.checker.nullness.compatqual.NullableDecl;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class Equivalence<T> {
|
|
|
|
public static final class Wrapper<T> implements Serializable {
|
|
private static final long serialVersionUID = 0;
|
|
private final Equivalence<? super T> equivalence;
|
|
|
|
@NullableDecl
|
|
private final T reference;
|
|
|
|
public boolean equals(@NullableDecl Object obj) {
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof Wrapper)) {
|
|
return false;
|
|
}
|
|
Wrapper wrapper = (Wrapper) obj;
|
|
if (this.equivalence.equals(wrapper.equivalence)) {
|
|
return this.equivalence.equivalent(this.reference, wrapper.reference);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@NullableDecl
|
|
public T get() {
|
|
return this.reference;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return this.equivalence.hash(this.reference);
|
|
}
|
|
|
|
public String toString() {
|
|
return this.equivalence + ".wrap(" + this.reference + ")";
|
|
}
|
|
|
|
private Wrapper(Equivalence<? super T> equivalence, @NullableDecl T t) {
|
|
this.equivalence = (Equivalence) Preconditions.checkNotNull(equivalence);
|
|
this.reference = t;
|
|
}
|
|
}
|
|
|
|
public static final class b extends Equivalence implements Serializable {
|
|
static final b a = new b();
|
|
|
|
@Override // com.applovin.exoplayer2.common.base.Equivalence
|
|
public boolean doEquivalent(Object obj, Object obj2) {
|
|
return obj.equals(obj2);
|
|
}
|
|
|
|
@Override // com.applovin.exoplayer2.common.base.Equivalence
|
|
public int doHash(Object obj) {
|
|
return obj.hashCode();
|
|
}
|
|
}
|
|
|
|
public static final class c implements Predicate, Serializable {
|
|
private final Equivalence a;
|
|
private final Object b;
|
|
|
|
public c(Equivalence equivalence, Object obj) {
|
|
this.a = (Equivalence) Preconditions.checkNotNull(equivalence);
|
|
this.b = obj;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // com.applovin.exoplayer2.common.base.Predicate
|
|
public boolean apply(Object obj) {
|
|
return this.a.equivalent(obj, this.b);
|
|
}
|
|
|
|
@Override // com.applovin.exoplayer2.common.base.Predicate
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof c)) {
|
|
return false;
|
|
}
|
|
c cVar = (c) obj;
|
|
return this.a.equals(cVar.a) && Objects.equal(this.b, cVar.b);
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Objects.hashCode(this.a, this.b);
|
|
}
|
|
|
|
public String toString() {
|
|
return this.a + ".equivalentTo(" + this.b + ")";
|
|
}
|
|
}
|
|
|
|
public static final class d extends Equivalence implements Serializable {
|
|
static final d a = new d();
|
|
|
|
@Override // com.applovin.exoplayer2.common.base.Equivalence
|
|
public boolean doEquivalent(Object obj, Object obj2) {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.applovin.exoplayer2.common.base.Equivalence
|
|
public int doHash(Object obj) {
|
|
return System.identityHashCode(obj);
|
|
}
|
|
}
|
|
|
|
public static Equivalence<Object> equals() {
|
|
return b.a;
|
|
}
|
|
|
|
public static Equivalence<Object> identity() {
|
|
return d.a;
|
|
}
|
|
|
|
public abstract boolean doEquivalent(T t, T t2);
|
|
|
|
public abstract int doHash(T t);
|
|
|
|
public final boolean equivalent(@NullableDecl T t, @NullableDecl T t2) {
|
|
if (t == t2) {
|
|
return true;
|
|
}
|
|
if (t == null || t2 == null) {
|
|
return false;
|
|
}
|
|
return doEquivalent(t, t2);
|
|
}
|
|
|
|
public final Predicate<T> equivalentTo(@NullableDecl T t) {
|
|
return new c(this, t);
|
|
}
|
|
|
|
public final int hash(@NullableDecl T t) {
|
|
if (t == null) {
|
|
return 0;
|
|
}
|
|
return doHash(t);
|
|
}
|
|
|
|
public final <S extends T> Wrapper<S> wrap(@NullableDecl S s) {
|
|
return new Wrapper<>(s);
|
|
}
|
|
}
|