@Test public void testIsEmpty() throws Exception { assertTrue(new Resolved(EmptyPath.INSTANCE, EmptyPath.INSTANCE).isEmpty()); assertFalse(new Resolved(EmptyPath.INSTANCE, new EncodedPath(new Precoded("abc/def"))).isEmpty()); assertFalse(new Resolved(new EncodedPath(new Precoded("abc/def")), EmptyPath.INSTANCE).isEmpty()); assertFalse(new Resolved(new EncodedPath(new Precoded("abc/def")), new EncodedPath(new Precoded("123"))).isEmpty()); assertFalse(new Resolved(EmptyPath.INSTANCE, new EncodedPath(new Precoded("/abc"))).isEmpty()); assertFalse(new Resolved(new EncodedPath(new Precoded("/abc")), EmptyPath.INSTANCE).isEmpty()); assertFalse(new Resolved(new EncodedPath(new Precoded("/abc")), new EncodedPath(new Precoded("/def"))).isEmpty()); assertFalse(new Resolved(new EncodedPath(new Precoded("abc")), new EncodedPath(new Precoded("/def"))).isEmpty()); assertFalse(new Resolved(new EncodedPath(new Precoded("/abc")), new EncodedPath(new Precoded("def"))).isEmpty()); }
@Override public boolean isEmpty() { return mBase.isEmpty() && mReference.isEmpty(); }
Resolved implements Path { @Override public boolean isEmpty() { return mBase.isEmpty() && mReference.isEmpty(); } }
Resolved implements Path { @Override public boolean isEmpty() { return mBase.isEmpty() && mReference.isEmpty(); } Resolved(Path base, Path reference); }
Resolved implements Path { @Override public boolean isEmpty() { return mBase.isEmpty() && mReference.isEmpty(); } Resolved(Path base, Path reference); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator(); }
Resolved implements Path { @Override public boolean isEmpty() { return mBase.isEmpty() && mReference.isEmpty(); } Resolved(Path base, Path reference); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator();  }