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; import org.springframework.data.mongodb.core.index.Indexed; public class YumPackageLocation { @Indexed private String href; public String getHref() { return href; } public void setHref(final String href) { this.href = href; } @Override public boolean equals(final Object o) { if (this == o) { return true; } if ((o == null) || (getClass() != o.getClass())) { return false; } final YumPackageLocation other = (YumPackageLocation) o; return new EqualsBuilder().append(href, other.href).isEquals(); } @Override public int hashCode() { return new HashCodeBuilder(17, 37).append(href).toHashCode(); } @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append(href).toString(); } }