@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getSSHPublicKeyId() == null) ? 0 : getSSHPublicKeyId().hashCode()); hashCode = prime * hashCode + ((getFingerprint() == null) ? 0 : getFingerprint().hashCode()); hashCode = prime * hashCode + ((getSSHPublicKeyBody() == null) ? 0 : getSSHPublicKeyBody().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getUploadDate() == null) ? 0 : getUploadDate().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getSSHPublicKeyId() != null) sb.append("SSHPublicKeyId: ").append(getSSHPublicKeyId()).append(","); if (getFingerprint() != null) sb.append("Fingerprint: ").append(getFingerprint()).append(","); if (getSSHPublicKeyBody() != null) sb.append("SSHPublicKeyBody: ").append(getSSHPublicKeyBody()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUploadDate() != null) sb.append("UploadDate: ").append(getUploadDate()); sb.append("}"); return sb.toString(); }
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getUploadDate() == null ^ this.getUploadDate() == null) return false; if (other.getUploadDate() != null && other.getUploadDate().equals(this.getUploadDate()) == false) return false; return true;
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getSSHPublicKeyId() != null) sb.append("SSHPublicKeyId: ").append(getSSHPublicKeyId()).append(","); if (getFingerprint() != null) sb.append("Fingerprint: ").append(getFingerprint()).append(","); if (getSSHPublicKeyBody() != null) sb.append("SSHPublicKeyBody: ").append(getSSHPublicKeyBody()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getUploadDate() != null) sb.append("UploadDate: ").append(getUploadDate()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getSSHPublicKeyId() == null) ? 0 : getSSHPublicKeyId().hashCode()); hashCode = prime * hashCode + ((getFingerprint() == null) ? 0 : getFingerprint().hashCode()); hashCode = prime * hashCode + ((getSSHPublicKeyBody() == null) ? 0 : getSSHPublicKeyBody().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getUploadDate() == null) ? 0 : getUploadDate().hashCode()); return hashCode; }
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getUploadDate() == null ^ this.getUploadDate() == null) return false; if (other.getUploadDate() != null && other.getUploadDate().equals(this.getUploadDate()) == false) return false; return true;