@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Dia other = (Dia) obj;
        if ((this.dia == null) ? (other.dia != null) : !this.dia.equals(other.dia)) {
            return false;
        }
        if (this.mes != other.mes) {
            return false;
        }
        if ((this.ano == null) ? (other.ano != null) : !this.ano.equals(other.ano)) {
            return false;
        }
        return true;
    }