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