@ParametersAreNonnullByDefault public final class PathElements extends Object implements Iterable<PathElements>
Path
's elements
The two elements of a path are its root component, if any, and its
name elements, if any. Note that the validity of name elements is not
checked here: this is the role of a PathElementsFactory
to do so.
Also note that theoretically, if a path has a root
component
, it does not mean that it is absolute
.
You will not generate instances of this class directly; this is up to
a PathElementsFactory
to do so.
GenericPath
,
PathElementsFactory
public Iterator<PathElements> iterator()
iterator
in interface Iterable<PathElements>