package com.benq.platform.test;

import java.lang.reflect.Method;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public final class ApiModule {
    private final List<Method> methods;
    private final String name;

    public ApiModule(String name, List<Method> methods) {
        kotlin.jvm.internal.l.e(name, "name");
        kotlin.jvm.internal.l.e(methods, "methods");
        this.name = name;
        this.methods = methods;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ ApiModule copy$default(ApiModule apiModule, String str, List list, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = apiModule.name;
        }
        if ((i2 & 2) != 0) {
            list = apiModule.methods;
        }
        return apiModule.copy(str, list);
    }

    public final String component1() {
        return this.name;
    }

    public final List<Method> component2() {
        return this.methods;
    }

    public final ApiModule copy(String name, List<Method> methods) {
        kotlin.jvm.internal.l.e(name, "name");
        kotlin.jvm.internal.l.e(methods, "methods");
        return new ApiModule(name, methods);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ApiModule)) {
            return false;
        }
        ApiModule apiModule = (ApiModule) obj;
        return kotlin.jvm.internal.l.a(this.name, apiModule.name) && kotlin.jvm.internal.l.a(this.methods, apiModule.methods);
    }

    public final List<Method> getMethods() {
        return this.methods;
    }

    public final String getName() {
        return this.name;
    }

    public int hashCode() {
        return (this.name.hashCode() * 31) + this.methods.hashCode();
    }

    public String toString() {
        return "ApiModule(name=" + this.name + ", methods=" + this.methods + ")";
    }
}
