71 lines
2.2 KiB
Java
71 lines
2.2 KiB
Java
package d0.z.d;
|
|
|
|
import java.io.Serializable;
|
|
import kotlin.reflect.KDeclarationContainer;
|
|
/* compiled from: AdaptedFunctionReference */
|
|
public class a implements i, Serializable {
|
|
private final int arity;
|
|
private final int flags;
|
|
private final boolean isTopLevel;
|
|
private final String name;
|
|
private final Class owner;
|
|
public final Object receiver;
|
|
private final String signature;
|
|
|
|
public a(int i, Class cls, String str, String str2, int i2) {
|
|
this(i, d.NO_RECEIVER, cls, str, str2, i2);
|
|
}
|
|
|
|
public a(int i, Object obj, Class cls, String str, String str2, int i2) {
|
|
this.receiver = obj;
|
|
this.owner = cls;
|
|
this.name = str;
|
|
this.signature = str2;
|
|
this.isTopLevel = (i2 & 1) == 1;
|
|
this.arity = i;
|
|
this.flags = i2 >> 1;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof a)) {
|
|
return false;
|
|
}
|
|
a aVar = (a) obj;
|
|
return this.isTopLevel == aVar.isTopLevel && this.arity == aVar.arity && this.flags == aVar.flags && m.areEqual(this.receiver, aVar.receiver) && m.areEqual(this.owner, aVar.owner) && this.name.equals(aVar.name) && this.signature.equals(aVar.signature);
|
|
}
|
|
|
|
@Override // d0.z.d.i
|
|
public int getArity() {
|
|
return this.arity;
|
|
}
|
|
|
|
public KDeclarationContainer getOwner() {
|
|
Class cls = this.owner;
|
|
if (cls == null) {
|
|
return null;
|
|
}
|
|
return this.isTopLevel ? a0.getOrCreateKotlinPackage(cls) : a0.getOrCreateKotlinClass(cls);
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public int hashCode() {
|
|
Object obj = this.receiver;
|
|
int i = 0;
|
|
int hashCode = (obj != null ? obj.hashCode() : 0) * 31;
|
|
Class cls = this.owner;
|
|
if (cls != null) {
|
|
i = cls.hashCode();
|
|
}
|
|
return ((((c.d.b.a.a.m(this.signature, c.d.b.a.a.m(this.name, (hashCode + i) * 31, 31), 31) + (this.isTopLevel ? 1231 : 1237)) * 31) + this.arity) * 31) + this.flags;
|
|
}
|
|
|
|
@Override // java.lang.Object
|
|
public String toString() {
|
|
return a0.renderLambdaToString(this);
|
|
}
|
|
}
|