package com.applovin.impl; import com.applovin.exoplayer2.common.base.Function; import com.applovin.exoplayer2.common.base.Objects; import com.applovin.exoplayer2.common.base.Preconditions; import java.io.Serializable; /* loaded from: classes.dex */ final class r2 extends wg implements Serializable { final Function a; final wg b; public String toString() { return this.b + ".onResultOf(" + this.a + ")"; } public r2(Function function, wg wgVar) { this.a = (Function) Preconditions.checkNotNull(function); this.b = (wg) Preconditions.checkNotNull(wgVar); } @Override // com.applovin.impl.wg, java.util.Comparator public int compare(Object obj, Object obj2) { return this.b.compare(this.a.apply(obj), this.a.apply(obj2)); } @Override // java.util.Comparator public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof r2)) { return false; } r2 r2Var = (r2) obj; return this.a.equals(r2Var.a) && this.b.equals(r2Var.b); } public int hashCode() { return Objects.hashCode(this.a, this.b); } }