package org.metaborg.sdf2table.parsetable;

import java.io.Serializable;

public class ParseTableConfiguration implements Serializable {

    private static final long serialVersionUID = -7976937053924797179L;

    private final boolean dynamic;
    private final boolean dataDependent;
    private final boolean solveDeepConflicts;
    private final boolean checkOverlap;
    private final boolean checkPriorities;
    private final boolean layoutSensitive;

    public ParseTableConfiguration(boolean dynamic, boolean dataDependent, boolean solveDeepConflicts,
        boolean checkOverlap, boolean checkPriorities, boolean layoutSensitive) {
        this.dynamic = dynamic;
        this.dataDependent = dataDependent;
        this.solveDeepConflicts = solveDeepConflicts;
        this.checkOverlap = checkOverlap;
        this.checkPriorities = checkPriorities;
        this.layoutSensitive = layoutSensitive;
    }

    public boolean isDataDependent() {
        return dataDependent;
    }

    public boolean isSolveDeepConflicts() {
        return solveDeepConflicts;
    }

    public boolean isDynamic() {
        return dynamic;
    }

    public boolean isCheckOverlap() {
        return checkOverlap;
    }

    public boolean isCheckPriorities() {
        return checkPriorities;
    }

    public boolean isLayoutSensitive() {
        return layoutSensitive;
    }


}

@@ -65,16 +65,42 @@
 lizable;
+%0Aimport java.util.Objects;
 %0A%0Apublic
@@ -1399,11 +1399,720 @@
 %0A    %7D%0A%0A
+    %0A    @Override public boolean equals(Object o) %7B%0A        if(this == o) return true;%0A        if(o == null %7C%7C getClass() != o.getClass()) return false;%0A        final ParseTableConfiguration that = (ParseTableConfiguration)o;%0A        return dynamic == that.dynamic &&%0A            dataDependent == that.dataDependent &&%0A            solveDeepConflicts == that.solveDeepConflicts &&%0A            checkOverlap == that.checkOverlap &&%0A            checkPriorities == that.checkPriorities &&%0A            layoutSensitive == that.layoutSensitive;%0A    %7D%0A%0A    @Override public int hashCode() %7B%0A        return Objects.hash(dynamic, dataDependent, solveDeepConflicts, checkOverlap, checkPriorities, layoutSensitive);%0A    %7D
 %0A%7D%0A

Add equals and hashcode to ParseTableConfiguration.