All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.sanda.apifi.generator.entity.ServiceAndTestableService Maven / Gradle / Ivy

package dev.sanda.apifi.generator.entity;

import com.squareup.javapoet.TypeSpec;

public class ServiceAndTestableService {
    private TypeSpec service;
    private TypeSpec testableService;

    public ServiceAndTestableService(TypeSpec service, TypeSpec testableService) {
        this.service = service;
        this.testableService = testableService;
    }

    public TypeSpec getService() {
        return this.service;
    }

    public TypeSpec getTestableService() {
        return this.testableService;
    }

    public void setService(TypeSpec service) {
        this.service = service;
    }

    public void setTestableService(TypeSpec testableService) {
        this.testableService = testableService;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ServiceAndTestableService)) return false;
        final ServiceAndTestableService other = (ServiceAndTestableService) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$service = this.getService();
        final Object other$service = other.getService();
        if (this$service == null ? other$service != null : !this$service.equals(other$service)) return false;
        final Object this$testableService = this.getTestableService();
        final Object other$testableService = other.getTestableService();
        if (this$testableService == null ? other$testableService != null : !this$testableService.equals(other$testableService))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ServiceAndTestableService;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $service = this.getService();
        result = result * PRIME + ($service == null ? 43 : $service.hashCode());
        final Object $testableService = this.getTestableService();
        result = result * PRIME + ($testableService == null ? 43 : $testableService.hashCode());
        return result;
    }

    public String toString() {
        return "ServiceAndTestableService(service=" + this.getService() + ", testableService=" + this.getTestableService() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy