ADD week 5
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package kotlin.jvm.internal;
|
||||
|
||||
import java.io.Serializable;
|
||||
import kotlin.reflect.KFunction;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class FunInterfaceConstructorReference extends FunctionReference implements Serializable {
|
||||
private final Class funInterface;
|
||||
|
||||
public FunInterfaceConstructorReference(Class cls) {
|
||||
super(1);
|
||||
this.funInterface = cls;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.FunctionReference
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj instanceof FunInterfaceConstructorReference) {
|
||||
return this.funInterface.equals(((FunInterfaceConstructorReference) obj).funInterface);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.FunctionReference
|
||||
public int hashCode() {
|
||||
return this.funInterface.hashCode();
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.FunctionReference
|
||||
public String toString() {
|
||||
return "fun interface " + this.funInterface.getName();
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: protected */
|
||||
@Override // kotlin.jvm.internal.FunctionReference, kotlin.jvm.internal.CallableReference
|
||||
public KFunction getReflected() {
|
||||
throw new UnsupportedOperationException("Functional interface constructor does not support reflection");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user