@Override public String toString() { return "TRelationshipAssignment{" + "type=" + getType() + ", properties=" + getProperties() + ", interfaces=" + getInterfaces() + '}'; }
public TRelationshipAssignment build() { return new TRelationshipAssignment(this); } }
public TRelationshipAssignment(Builder builder) { this.setType(builder.type); this.setProperties(builder.properties); this.setInterfaces(builder.interfaces); }
@Override public R visit(TRelationshipAssignment node, P parameter) { return reduce(Stream.of( visitElement(node.getProperties(), parameter, "properties"), visitElement(node.getInterfaces(), parameter, "interfaces") )); }
@Override public int hashCode() { return Objects.hash(getType(), getProperties(), getInterfaces()); }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof TRelationshipAssignment)) return false; TRelationshipAssignment that = (TRelationshipAssignment) o; return Objects.equals(getType(), that.getType()) && Objects.equals(getProperties(), that.getProperties()) && Objects.equals(getInterfaces(), that.getInterfaces()); }
public Printer visit(TRelationshipAssignment node, Parameter parameter) { return new Printer(parameter.getIndent()) .printKeyValue("type", node.getType()) .print(printMap("properties", node.getProperties(), parameter)) .print(printMap("interfaces", node.getInterfaces(), parameter)); }