- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
38 lines
1.2 KiB
Java
38 lines
1.2 KiB
Java
package androidx.lifecycle;
|
|
|
|
import kotlin.Function;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.FunctionAdapter;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class Transformations$sam$androidx_lifecycle_Observer$0 implements Observer, FunctionAdapter {
|
|
private final /* synthetic */ Function1 function;
|
|
|
|
public Transformations$sam$androidx_lifecycle_Observer$0(Function1 function) {
|
|
Intrinsics.checkNotNullParameter(function, "function");
|
|
this.function = function;
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if ((obj instanceof Observer) && (obj instanceof FunctionAdapter)) {
|
|
return Intrinsics.areEqual(getFunctionDelegate(), ((FunctionAdapter) obj).getFunctionDelegate());
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // kotlin.jvm.internal.FunctionAdapter
|
|
public final Function getFunctionDelegate() {
|
|
return this.function;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return getFunctionDelegate().hashCode();
|
|
}
|
|
|
|
@Override // androidx.lifecycle.Observer
|
|
public final /* synthetic */ void onChanged(Object obj) {
|
|
this.function.invoke(obj);
|
|
}
|
|
}
|