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