package jetbrains.mps.debug.api.programState;

/*Generated by MPS */

import jetbrains.mps.annotations.GeneratedClass;

@GeneratedClass(node = "r:0a0d7eec-6e5a-412b-8e16-e3ee5ed7fb95(jetbrains.mps.debug.api.programState)/4474271214082913394", model = "r:0a0d7eec-6e5a-412b-8e16-e3ee5ed7fb95(jetbrains.mps.debug.api.programState)")
public class WatchablesCategory implements Comparable<WatchablesCategory> {
  public static final WatchablesCategory NONE = new WatchablesCategory("");
  private final String myCategoryName;
  public WatchablesCategory(String categoryName) {
    myCategoryName = categoryName;
  }
  public String getCategoryName() {
    return myCategoryName;
  }
  @Override
  public int hashCode() {
    return this.getCategoryName().hashCode();
  }
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    return this.getCategoryName().equals(((WatchablesCategory) o).getCategoryName());
  }
  @Override
  public int compareTo(WatchablesCategory o) {
    return this.getCategoryName().compareTo(o.getCategoryName());
  }
}
