@Test public void isAbsolute() throws Exception { assertFalse(new EncodedPath(new Precoded("")).isAbsolute()); assertFalse(new EncodedPath(new Precoded(".")).isAbsolute()); assertFalse(new EncodedPath(new Precoded("./")).isAbsolute()); assertFalse(new EncodedPath(new Precoded("abc")).isAbsolute()); assertFalse(new EncodedPath(new Precoded("abc/")).isAbsolute()); assertFalse(new EncodedPath(new Precoded("abc/123")).isAbsolute()); assertFalse(new EncodedPath(new Precoded("abc/123/")).isAbsolute()); assertTrue(new EncodedPath(new Precoded("/")).isAbsolute()); assertTrue(new EncodedPath(new Precoded("/.")).isAbsolute()); assertTrue(new EncodedPath(new Precoded("/./")).isAbsolute()); assertTrue(new EncodedPath(new Precoded("/abc")).isAbsolute()); assertTrue(new EncodedPath(new Precoded("/abc/")).isAbsolute()); assertTrue(new EncodedPath(new Precoded("/abc/123")).isAbsolute()); assertTrue(new EncodedPath(new Precoded("/abc/123/")).isAbsolute()); }
@Override public boolean isAbsolute() { return mPath.length() > 0 && mPath.charAt(0) == '/'; }
EncodedPath implements Path { @Override public boolean isAbsolute() { return mPath.length() > 0 && mPath.charAt(0) == '/'; } }
EncodedPath implements Path { @Override public boolean isAbsolute() { return mPath.length() > 0 && mPath.charAt(0) == '/'; } EncodedPath(UriEncoded path); }
EncodedPath implements Path { @Override public boolean isAbsolute() { return mPath.length() > 0 && mPath.charAt(0) == '/'; } EncodedPath(UriEncoded path); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator(); }
EncodedPath implements Path { @Override public boolean isAbsolute() { return mPath.length() > 0 && mPath.charAt(0) == '/'; } EncodedPath(UriEncoded path); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator();  }