@Override public boolean equals(Object object) { if (!(object instanceof TestStation)) { return false; } TestStation other = (TestStation) object; if ((this.creator == null && other.getCreator() != null) || (this.creator != null && !this.creator.equals(other.getCreator()))) { return false; } if ((this.hostName == null && other.getHostName() != null) || (this.hostName != null && !this.hostName.equals(other.getHostName()))) { return false; } return true; }