tbmelabs / tbme-tv

An open source streaming application.
Other
0 stars 1 forks source link

change equals and hashcode implementation #43

Closed bbortt closed 6 years ago

bbortt commented 6 years ago

according to this article.

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        Object other = (Object) o;
        return id!= null && id.equals(other.id);
    }

    @Override
    public int hashCode() {
        return 31;
    }
bbortt commented 6 years ago

track on this branch.

bbortt commented 6 years ago

done.