/** * 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLatestRevision() != null) sb.append("LatestRevision: ").append(getLatestRevision()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getWarnings() != null) sb.append("Warnings: ").append(getWarnings()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLatestRevision() == null) ? 0 : getLatestRevision().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); return hashCode; }
if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getLatestRevision() == null ^ this.getLatestRevision() == null) return false; if (other.getLatestRevision() != null && other.getLatestRevision().equals(this.getLatestRevision()) == false) return false; if (other.getName() == null ^ this.getName() == null)
/** * 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLatestRevision() != null) sb.append("LatestRevision: ").append(getLatestRevision()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getWarnings() != null) sb.append("Warnings: ").append(getWarnings()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLatestRevision() == null) ? 0 : getLatestRevision().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); return hashCode; }
if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getLatestRevision() == null ^ this.getLatestRevision() == null) return false; if (other.getLatestRevision() != null && other.getLatestRevision().equals(this.getLatestRevision()) == false) return false; if (other.getName() == null ^ this.getName() == null)