package javafx.scene.chart;

/**
 * @author Adrian Healey <adrian.j.healey@gmail.com>
 */
public class SankeyNode {
    private String name;
    private double value = 0.0;
    private int column = 0;

    public SankeyNode(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    double getValue() {
        return value;
    }

    void setValue(double value) {
        this.value = value;
    }

    int getColumn() {
        return column;
    }

    void setColumn(int column) {
        this.column = column;
    }

    void moveRight() {
        this.column++;
    }
}

@@ -193,16 +193,41 @@
 umn = 0;
+%0A    private int row = 0;
 %0A%0A    pu
@@ -644,10 +644,488 @@
 ;%0A    %7D%0A
-%7D
 %0A
+    int getRow() %7B%0A        return row;%0A    %7D%0A%0A    void setRow(int row) %7B%0A        this.row = row;%0A    %7D%0A%0A    void movDown() %7B%0A        this.row++;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        SankeyNode that = (SankeyNode) o;%0A%0A        return name.equals(that.name);%0A%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return name.hashCode();%0A    %7D%0A%7D

Implement equals, hashcode and row field