package org.metaborg.spoofax.core.style;

import org.metaborg.core.style.ICategory;

public class SortConsCategory implements ICategory {
    private static final long serialVersionUID = 8423515260404604295L;
    
	public final String sort;
    public final String cons;


    public SortConsCategory(String sort, String cons) {
        this.sort = sort;
        this.cons = cons;
    }


    @Override public String name() {
        return sort + "." + cons;
    }
    
    
    @Override public String toString() {
        return name();
    }
}
@@ -35,16 +35,43 @@
 style;%0A%0A
+import java.util.Objects;%0A%0A
 import o
@@ -233,14 +233,13 @@
 5L;%0A
+%0A
     
-%0A%09
 publ
@@ -291,17 +291,16 @@
  cons;%0A%0A
-%0A
     publ
@@ -484,25 +484,419 @@
 ;%0A    %7D%0A
-    
 %0A    
+@Override public boolean equals(Object o) %7B%0A        if(this == o)%0A            return true;%0A        if(o == null %7C%7C getClass() != o.getClass())%0A            return false;%0A        SortConsCategory that = (SortConsCategory) o;%0A        return Objects.equals(sort, that.sort) && Objects.equals(cons, that.cons);%0A    %7D%0A%0A    @Override public int hashCode() %7B%0A        return Objects.hash(sort, cons);%0A    %7D%0A
 %0A    @Ov
@@ -959,8 +959,9 @@
 %0A    %7D%0A%7D
+%0A

Fix SortCons styling bug: add equals and hashCode