All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cucumber.runtime.table.DiffableRow Maven / Gradle / Ivy

There is a newer version: 7.18.1
Show newest version
package cucumber.runtime.table;

import gherkin.pickles.PickleRow;

import java.util.List;

public class DiffableRow {
    public final PickleRow row;
    public final List convertedRow;

    public DiffableRow(PickleRow row, List convertedRow) {
        this.row = row;
        this.convertedRow = convertedRow;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DiffableRow that = (DiffableRow) o;
        return convertedRow.equals(that.convertedRow);

    }

    @Override
    public int hashCode() {
        return convertedRow.hashCode();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy