@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((attributes == null) ? 0 : attributes.hashCode()); result = prime * result + ((backupFor == null) ? 0 : backupFor.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; SitesConfiguration other = (SitesConfiguration) obj; if (attributes == null) { if (other.attributes != null) return false; } else if (!attributes.equals(other.attributes)) return false; if (backupFor == null) { if (other.backupFor != null) return false; } else if (!backupFor.equals(other.backupFor)) return false; return true; }