1 package org.simantics.graph.query;
3 public class PathRoot implements Path {
4 public final String name;
6 public PathRoot(String name) {
11 public int hashCode() {
14 result = prime * result + ((name == null) ? 0 : name.hashCode());
20 public boolean equals(Object obj) {
25 if (getClass() != obj.getClass())
27 PathRoot other = (PathRoot) obj;
29 if (other.name != null)
31 } else if (!name.equals(other.name))
37 public String toString() {
45 public void toString(StringBuilder b) {
53 public Path child(String childName) {
54 return new PathChild(childName, this);