@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOutputKey() == null) ? 0 : getOutputKey().hashCode()); hashCode = prime * hashCode + ((getOutputValue() == null) ? 0 : getOutputValue().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getExportName() == null) ? 0 : getExportName().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 (getOutputKey() != null) sb.append("OutputKey: ").append(getOutputKey()).append(","); if (getOutputValue() != null) sb.append("OutputValue: ").append(getOutputValue()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getExportName() != null) sb.append("ExportName: ").append(getExportName()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Output == false) return false; Output other = (Output) obj; if (other.getOutputKey() == null ^ this.getOutputKey() == null) return false; if (other.getOutputKey() != null && other.getOutputKey().equals(this.getOutputKey()) == false) return false; if (other.getOutputValue() == null ^ this.getOutputValue() == null) return false; if (other.getOutputValue() != null && other.getOutputValue().equals(this.getOutputValue()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getExportName() == null ^ this.getExportName() == null) return false; if (other.getExportName() != null && other.getExportName().equals(this.getExportName()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOutputKey() == null) ? 0 : getOutputKey().hashCode()); hashCode = prime * hashCode + ((getOutputValue() == null) ? 0 : getOutputValue().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getExportName() == null) ? 0 : getExportName().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 (getOutputKey() != null) sb.append("OutputKey: ").append(getOutputKey()).append(","); if (getOutputValue() != null) sb.append("OutputValue: ").append(getOutputValue()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getExportName() != null) sb.append("ExportName: ").append(getExportName()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Output == false) return false; Output other = (Output) obj; if (other.getOutputKey() == null ^ this.getOutputKey() == null) return false; if (other.getOutputKey() != null && other.getOutputKey().equals(this.getOutputKey()) == false) return false; if (other.getOutputValue() == null ^ this.getOutputValue() == null) return false; if (other.getOutputValue() != null && other.getOutputValue().equals(this.getOutputValue()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getExportName() == null ^ this.getExportName() == null) return false; if (other.getExportName() != null && other.getExportName().equals(this.getExportName()) == false) return false; return true; }
private void printOutputs(Stack stack) { getLogger().info("==== Outputs ===="); stack.getOutputs().stream() .forEach(o -> getLogger().info("{} ({}) = {}", o.getOutputKey(), o.getDescription(), o.getOutputValue())); } }