@Test public void testIsGlobal() { final String[] tests = { "/", "/global", "/global2" }; for (String t : tests) { assertTrue(GraphName.of(t).isGlobal()); } final String[] fails = { "", "not_global", "not/global" }; for (String t : fails) { assertFalse(GraphName.of(t).isGlobal()); } }
public boolean isGlobal() { return !isEmpty() && name.charAt(0) == '/'; }
GraphName { public boolean isGlobal() { return !isEmpty() && name.charAt(0) == '/'; } }
GraphName { public boolean isGlobal() { return !isEmpty() && name.charAt(0) == '/'; } private  GraphName(String name); }
GraphName { public boolean isGlobal() { return !isEmpty() && name.charAt(0) == '/'; } 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 boolean isGlobal() { return !isEmpty() && name.charAt(0) == '/'; } 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);  }