/*
 * Copyright 2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.github.liquigraph.cypher;

import java.util.List;

public class ResultData {
    private final List<String> columns;
    private final List<Row> rows;

    public ResultData(List<String> columns, List<Row> rows) {
        this.columns = columns;
        this.rows = rows;
    }

    public List<String> getColumns() {
        return columns;
    }

    public List<Row> getRows() {
        return rows;
    }
}

@@ -669,16 +669,42 @@
 il.List;
+%0Aimport java.util.Objects;
 %0A%0Apublic
@@ -1054,11 +1054,652 @@
 s;%0A    %7D
+%0A%0A    @Override%0A    public int hashCode() %7B%0A        return Objects.hash(columns, rows);%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (this == obj) %7B%0A            return true;%0A        %7D%0A        if (obj == null %7C%7C getClass() != obj.getClass()) %7B%0A            return false;%0A        %7D%0A        final ResultData other = (ResultData) obj;%0A        return Objects.equals(this.columns, other.columns)%0A            && Objects.equals(this.rows, other.rows);%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22ResultData%7B%22 +%0A            %22columns=%22 + columns +%0A            %22, rows=%22 + rows +%0A            '%7D';%0A    %7D
 %0A%7D%0A

Make ResultData equatable and displayable