@Test public void testCanonicalizeName() { assertGraphNameEquals("", GraphName.of("")); assertGraphNameEquals("/", GraphName.of("/")); assertGraphNameEquals("/", GraphName.of(" assertGraphNameEquals("/", GraphName.of(" assertGraphNameEquals("foo", GraphName.of("foo")); assertGraphNameEquals("foo", GraphName.of("foo/")); assertGraphNameEquals("foo", GraphName.of("foo assertGraphNameEquals("/foo", GraphName.of("/foo")); assertGraphNameEquals("/foo", GraphName.of("/foo/")); assertGraphNameEquals("/foo", GraphName.of("/foo assertGraphNameEquals("/foo/bar", GraphName.of("/foo/bar")); assertGraphNameEquals("/foo/bar", GraphName.of("/foo/bar/")); assertGraphNameEquals("/foo/bar", GraphName.of("/foo/bar assertGraphNameEquals("~foo", GraphName.of("~foo")); assertGraphNameEquals("~foo", GraphName.of("~foo/")); assertGraphNameEquals("~foo", GraphName.of("~foo assertGraphNameEquals("~foo", GraphName.of("~/foo")); }
public static GraphName of(String name) { return new GraphName(canonicalize(name)); }
GraphName { public static GraphName of(String name) { return new GraphName(canonicalize(name)); } }
GraphName { public static GraphName of(String name) { return new GraphName(canonicalize(name)); } private  GraphName(String name); }
GraphName { public static GraphName of(String name) { return new GraphName(canonicalize(name)); } private  GraphName(String name); static GraphName newAnonymous(); static GraphName root(); static GraphName empty(); static GraphName of(String name); boolean isGlobal(); boolean isRoot(); boolean isEmpty(); boolean isPrivate(); boolean isRelative(); GraphName getParent(); GraphName getBasename(); GraphName toRelative(); GraphName toGlobal(); GraphName join(GraphName other); GraphName join(String other); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
GraphName { public static GraphName of(String name) { return new GraphName(canonicalize(name)); } private  GraphName(String name); static GraphName newAnonymous(); static GraphName root(); static GraphName empty(); static GraphName of(String name); boolean isGlobal(); boolean isRoot(); boolean isEmpty(); boolean isPrivate(); boolean isRelative(); GraphName getParent(); GraphName getBasename(); GraphName toRelative(); GraphName toGlobal(); GraphName join(GraphName other); GraphName join(String other); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }