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

org.codegas.commons.lang.value.AbstractDto Maven / Gradle / Ivy

The newest version!
package org.codegas.commons.lang.value;

import java.util.Objects;

public abstract class AbstractDto {

    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }

        if (o == null || !getClass().equals(o.getClass())) {
            return false;
        }

        AbstractDto abstractDto = (AbstractDto) o;
        return Objects.equals(id, abstractDto.id);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return getClass().getSimpleName() + "#" + id;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy