The {@code beginIndex} and {@code endIndex} parameters specify thesubsequence of name elements. The name that is closest to the root in the directory hierarchy has index {@code 0}. The name that is farthest from the root has index {@link #getNameCount count}{@code -1}. The returned {@code Path} object has the name elementsthat begin at {@code beginIndex} and extend to the element at index {@code endIndex-1}. @param beginIndex the index of the first element, inclusive @param endIndex the index of the last element, exclusive @return a new {@code Path} object that is a subsequence of the nameelements in this {@code Path} @throws IllegalArgumentException if {@code beginIndex} is negative, or greater than or equal tothe number of elements. If {@code endIndex} is less than orequal to {@code beginIndex}, or larger than the number of elements.
Path consisting of those Path.Element objects between the given from, inclusive, and the given to, exclusive. An IllegalArgumentException is thrown if from is greater or equal than to or if any of both params is out of the possible range. A RepositoryException is thrown if this Path is not normalized.
@param from index of the element to start with and low endpoint(inclusive) within the list of elements to use for the sub-path.
@param to index of the element outside of the range i.e. high endpoint(exclusive) within the list of elements to use for the sub-path.
@return a new Path consisting of those Path.Element objectsbetween the given from, inclusive, and the given to, exclusive.
@throws IllegalArgumentException if fromis greater or equal than to or if any of both params is out of the possible range.
@throws RepositoryException If this Path is not normalized.
beginIndex index (inclusive). This is equivalent to calling path.subpath(beginIndex,path.size()-1).
@param beginIndex the beginning index, inclusive.
@return the specified subpath
@exception IndexOutOfBoundsException if the beginIndex is negative or larger than the length of this Path object
beginIndex index (inclusive). This is equivalent to calling path.subpath(beginIndex,path.size()-1).
@param beginIndex the beginning index, inclusive.
@return the specified subpath
@exception IndexOutOfBoundsException if the beginIndex is negative or larger than the length of this Path object
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |