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

io.rtr.alchemy.dto.models.TreatmentOverrideDto Maven / Gradle / Ivy

There is a newer version: 2.2.14
Show newest version
package io.rtr.alchemy.dto.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Objects;

/** Represents a treatment override */
public class TreatmentOverrideDto {
    private final String name;
    private final String filter;
    private final String treatment;

    public TreatmentOverrideDto(
            @JsonProperty("name") String name,
            @JsonProperty("filter") String filter,
            @JsonProperty("treatment") String treatment) {
        this.name = name;
        this.filter = filter;
        this.treatment = treatment;
    }

    public String getName() {
        return name;
    }

    public String getFilter() {
        return filter;
    }

    public String getTreatment() {
        return treatment;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(name, filter, treatment);
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof TreatmentOverrideDto)) {
            return false;
        }

        final TreatmentOverrideDto other = (TreatmentOverrideDto) obj;
        return Objects.equal(name, other.name)
                && Objects.equal(filter, other.filter)
                && Objects.equal(treatment, other.treatment);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy