1 package org.simantics.selectionview;
4 public class CategoryNodeImpl implements CategoryNode {
6 final private String name;
7 final private String sortName;
9 public CategoryNodeImpl(String name, String sortName) {
12 this.sortName = sortName != null ? sortName : name;
16 public String getName() {
21 public String getSortingName() {
26 public int hashCode() {
27 return name.hashCode();
31 public boolean equals(Object object) {
34 else if (object == null)
36 else if (CategoryNodeImpl.class != object.getClass())
38 CategoryNodeImpl r = (CategoryNodeImpl)object;
39 return r.name.equals(name);