package de.is24.infrastructure.gridfs.http.domain.yum; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; public class YumPackageChangeLog { private String author; private Integer date; private String message; public String getAuthor() { return author; } public void setAuthor(final String author) { this.author = author; } public Integer getDate() { return date; } public void setDate(final Integer date) { this.date = date; } public String getMessage() { return message; } public void setMessage(final String message) { this.message = message; } @Override public boolean equals(final Object o) { if (this == o) { return true; } if ((o == null) || (getClass() != o.getClass())) { return false; } final YumPackageChangeLog other = (YumPackageChangeLog) o; return new EqualsBuilder().append(author, other.author) .append(date, other.date) .append(message, other.message) .isEquals(); } @Override public int hashCode() { return new HashCodeBuilder(17, 37).append(author).append(date).append(message).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append(author) .append(date) .append(message) .toString(); } }