@Test public void shouldAlreadyBeNormalizedIfPathContainsNoParentOrSelfReferences() { assertThat(pathFactory.create("/a/b/c/d/e").isNormalized(), is(true)); assertThat(pathFactory.create("a/b/c/d/e").isNormalized(), is(true)); assertThat(pathFactory.create("a").isNormalized(), is(true)); assertThat(pathFactory.create("/a").isNormalized(), is(true)); assertThat(ROOT.isNormalized(), is(true)); }
@Override public boolean isNormalized() { return this.normalized; }
BasicPath extends AbstractPath { @Override public boolean isNormalized() { return this.normalized; } }
BasicPath extends AbstractPath { @Override public boolean isNormalized() { return this.normalized; } BasicPath( List<Segment> segments,
                      boolean absolute ); }
BasicPath extends AbstractPath { @Override public boolean isNormalized() { return this.normalized; } BasicPath( List<Segment> segments,
                      boolean absolute ); @Override Path getAncestor( int degree ); @Override List<Segment> getSegmentsList(); @Override boolean isAbsolute(); @Override boolean isNormalized(); @Override boolean isRoot(); @Override int size(); }
BasicPath extends AbstractPath { @Override public boolean isNormalized() { return this.normalized; } BasicPath( List<Segment> segments,
                      boolean absolute ); @Override Path getAncestor( int degree ); @Override List<Segment> getSegmentsList(); @Override boolean isAbsolute(); @Override boolean isNormalized(); @Override boolean isRoot(); @Override int size(); static final Path EMPTY_RELATIVE; static final Path SELF_PATH; static final Path PARENT_PATH; }