@Test public void testIterator() throws Exception { assertThat(new StructuredPath(), new IsEmptyIterable()); assertThat(new StructuredPath(IdempotentEncoded.EMPTY), Matchers.contains((UriEncoded) IdempotentEncoded.EMPTY)); assertThat(new StructuredPath(IdempotentEncoded.CURRENT), Matchers.contains((UriEncoded) IdempotentEncoded.CURRENT)); assertThat(new StructuredPath(IdempotentEncoded.PARENT), Matchers.contains((UriEncoded) IdempotentEncoded.PARENT)); assertThat(new StructuredPath(IdempotentEncoded.PARENT, IdempotentEncoded.PARENT), Matchers.contains((UriEncoded) IdempotentEncoded.PARENT, IdempotentEncoded.PARENT)); assertThat(new StructuredPath(IdempotentEncoded.EMPTY, new Encoded("a"), new Encoded("b")), Matchers.contains((UriEncoded) IdempotentEncoded.EMPTY, new Encoded("a"), new Encoded("b"))); assertThat(new StructuredPath(IdempotentEncoded.CURRENT, new Encoded("a"), new Encoded("b")), Matchers.contains((UriEncoded) IdempotentEncoded.CURRENT, new Encoded("a"), new Encoded("b"))); assertThat(new StructuredPath(IdempotentEncoded.PARENT, new Encoded("a"), new Encoded("b")), Matchers.contains((UriEncoded) IdempotentEncoded.PARENT, new Encoded("a"), new Encoded("b"))); }
@Override public Iterator<UriEncoded> iterator() { return new ArrayIterator<>(mPathSegments); }
StructuredPath implements Path { @Override public Iterator<UriEncoded> iterator() { return new ArrayIterator<>(mPathSegments); } }
StructuredPath implements Path { @Override public Iterator<UriEncoded> iterator() { return new ArrayIterator<>(mPathSegments); } StructuredPath(UriEncoded... segments); }
StructuredPath implements Path { @Override public Iterator<UriEncoded> iterator() { return new ArrayIterator<>(mPathSegments); } StructuredPath(UriEncoded... segments); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator(); }
StructuredPath implements Path { @Override public Iterator<UriEncoded> iterator() { return new ArrayIterator<>(mPathSegments); } StructuredPath(UriEncoded... segments); @Override boolean isEmpty(); @Override boolean isAbsolute(); @Override Iterator<UriEncoded> iterator();  }