/** * 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 (getTarget() != null) sb.append("Target: ").append(getTarget()).append(","); if (getEvaluation() != null) sb.append("Evaluation: ").append(getEvaluation()).append(","); if (getChangeSource() != null) sb.append("ChangeSource: ").append(getChangeSource()).append(","); if (getCausingEntity() != null) sb.append("CausingEntity: ").append(getCausingEntity()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); hashCode = prime * hashCode + ((getEvaluation() == null) ? 0 : getEvaluation().hashCode()); hashCode = prime * hashCode + ((getChangeSource() == null) ? 0 : getChangeSource().hashCode()); hashCode = prime * hashCode + ((getCausingEntity() == null) ? 0 : getCausingEntity().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResourceChangeDetail == false) return false; ResourceChangeDetail other = (ResourceChangeDetail) obj; if (other.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == false) return false; if (other.getEvaluation() == null ^ this.getEvaluation() == null) return false; if (other.getEvaluation() != null && other.getEvaluation().equals(this.getEvaluation()) == false) return false; if (other.getChangeSource() == null ^ this.getChangeSource() == null) return false; if (other.getChangeSource() != null && other.getChangeSource().equals(this.getChangeSource()) == false) return false; if (other.getCausingEntity() == null ^ this.getCausingEntity() == null) return false; if (other.getCausingEntity() != null && other.getCausingEntity().equals(this.getCausingEntity()) == 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 (getTarget() != null) sb.append("Target: ").append(getTarget()).append(","); if (getEvaluation() != null) sb.append("Evaluation: ").append(getEvaluation()).append(","); if (getChangeSource() != null) sb.append("ChangeSource: ").append(getChangeSource()).append(","); if (getCausingEntity() != null) sb.append("CausingEntity: ").append(getCausingEntity()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); hashCode = prime * hashCode + ((getEvaluation() == null) ? 0 : getEvaluation().hashCode()); hashCode = prime * hashCode + ((getChangeSource() == null) ? 0 : getChangeSource().hashCode()); hashCode = prime * hashCode + ((getCausingEntity() == null) ? 0 : getCausingEntity().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResourceChangeDetail == false) return false; ResourceChangeDetail other = (ResourceChangeDetail) obj; if (other.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == false) return false; if (other.getEvaluation() == null ^ this.getEvaluation() == null) return false; if (other.getEvaluation() != null && other.getEvaluation().equals(this.getEvaluation()) == false) return false; if (other.getChangeSource() == null ^ this.getChangeSource() == null) return false; if (other.getChangeSource() != null && other.getChangeSource().equals(this.getChangeSource()) == false) return false; if (other.getCausingEntity() == null ^ this.getCausingEntity() == null) return false; if (other.getCausingEntity() != null && other.getCausingEntity().equals(this.getCausingEntity()) == false) return false; return true; }