@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof TRequirementDefinition)) return false; TRequirementDefinition that = (TRequirementDefinition) o; return Objects.equals(getCapability(), that.getCapability()) && Objects.equals(getNode(), that.getNode()) && Objects.equals(getRelationship(), that.getRelationship()) && Objects.equals(getOccurrences(), that.getOccurrences()) && Objects.equals(getDescription(), that.getDescription()); }
@Override public int hashCode() { return Objects.hash(getCapability(), getNode(), getRelationship(), getOccurrences(), getDescription()); }
@Override public String toString() { return "TRequirementDefinition{" + "capability=" + getCapability() + ", node=" + getNode() + ", relationship=" + getRelationship() + ", occurrences=" + getOccurrences() + ", description='" + getDescription() + '\'' + '}'; }
public Printer visit(TRequirementDefinition node, Parameter parameter) { return new Printer(parameter.getIndent()) .printKeyValue("capability", node.getCapability()) .printKeyValue("node", node.getNode()) .print(printVisitorNode(node.getRelationship(), new Parameter(parameter.getIndent()).addContext("relationship"))) .printKeyValue("occurrences", node.getOccurrences()) .printKeyValue("description", node.getDescription()); }