@Test( expected = IndexOutOfBoundsException.class ) public void shouldFailToReturnSubpathWithEndingIndexIfStartingIndexIsEqualToOrLargerThanSize() { path = pathFactory.create("/mode:a/b/mode:c/../d/./mode:e/../.."); path.subpath(path.size() + 1, path.size() + 2); }
@Override public int size() { return this.segments.size(); }
BasicPath extends AbstractPath { @Override public int size() { return this.segments.size(); } }
BasicPath extends AbstractPath { @Override public int size() { return this.segments.size(); } BasicPath( List<Segment> segments,
                      boolean absolute ); }
BasicPath extends AbstractPath { @Override public int size() { return this.segments.size(); } 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 int size() { return this.segments.size(); } 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; }