@Test public void testIsAbsolute() throws Exception { assertFalse(new StructuredPath().isAbsolute()); assertFalse(new StructuredPath(IdempotentEncoded.CURRENT).isAbsolute()); assertFalse(new StructuredPath(new Encoded("abc")).isAbsolute()); assertFalse(new StructuredPath(new Encoded("abc"), new Encoded("123")).isAbsolute()); }
@Override public boolean isAbsolute() { return mPathSegments.length > 0 && IdempotentEncoded.EMPTY.equals(mPathSegments[0]); }
StructuredPath implements Path { @Override public boolean isAbsolute() { return mPathSegments.length > 0 && IdempotentEncoded.EMPTY.equals(mPathSegments[0]); } }
StructuredPath implements Path { @Override public boolean isAbsolute() { return mPathSegments.length > 0 && IdempotentEncoded.EMPTY.equals(mPathSegments[0]); } StructuredPath(UriEncoded... segments); }
StructuredPath implements Path { @Override public boolean isAbsolute() { return mPathSegments.length > 0 && IdempotentEncoded.EMPTY.equals(mPathSegments[0]); } StructuredPath(UriEncoded... segments); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator(); }
StructuredPath implements Path { @Override public boolean isAbsolute() { return mPathSegments.length > 0 && IdempotentEncoded.EMPTY.equals(mPathSegments[0]); } StructuredPath(UriEncoded... segments); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator();  }