Uses of Class
org.microbean.path.Path.Element
-
Uses of Path.Element in org.microbean.path
Modifier and TypeMethodDescriptionfinal Path.Element<?>
Path.get
(int index) Returns thePath.Element
found at the supplied zero-based index.final Path.Element<T>
Path.lastElement()
Returns the lastPath.Element
in thisPath
.static final <T> Path.Element<T>
Returns aPath.Element
representing the supplied arguments.static final <T> Path.Element<T>
Path.Element.of
(Qualifiers<? extends String, ?> qualifiers, T qualified, String name) Returns aPath.Element
representing the supplied arguments.static final <T> Path.Element<T>
Returns aPath.Element
representing the supplied arguments.static final Path.Element<?>
Path.Element.root()
Returns aPath.Element
that is a root element.final Path.Element<T>
Path.Element.withQualifiersPrefix
(String prefix) Returns aPath.Element
, usually newly created, whose qualifiers have keys that are prefixed with the suppliedprefix
.Modifier and TypeMethodDescriptionfinal Iterator<Path.Element<?>>
Path.iterator()
final Stream<Path.Element<?>>
Path.parallelStream()
final Spliterator<Path.Element<?>>
Path.spliterator()
final Stream<Path.Element<?>>
Path.stream()
Modifier and TypeMethodDescriptionstatic final <T> Path<T>
Path.of
(Path.Element<? extends T> lastElement) Returns a (usually new)Path
formed from the suppliedlastElement
.static final <T> Path<T>
Path.of
(Qualifiers<? extends String, ?> pathQualifiers, List<? extends Path.Element<?>> elements, Path.Element<? extends T> lastElement) Return a (usually new)Path
formed from the supplied arguments and returns it.static final <T> Path<T>
Path.of
(Qualifiers<? extends String, ?> pathQualifiers, Path.Element<? extends T> lastElement) Return a (usually new)Path
formed from the supplied arguments and returns it.final <U> Path<U>
Path.plus
(Collection<? extends Path.Element<?>> elements, Path.Element<? extends U> lastElement) Returns a newPath
consisting of thisPath
's qualifiers, thisPath
's elements, the suppliedelements
, and the suppliedlastElement
.final <U> Path<U>
Path.plus
(Path.Element<? extends U> element) Modifier and TypeMethodDescriptionfinal boolean
Path.endsWith
(Path<?> other, BiPredicate<? super Path.Element<?>, ? super Path.Element<?>> p) final boolean
Path.endsWith
(Path<?> other, BiPredicate<? super Path.Element<?>, ? super Path.Element<?>> p) final int
Path.indexOf
(Path<?> path, BiPredicate<? super Path.Element<?>, ? super Path.Element<?>> p) final int
Path.indexOf
(Path<?> path, BiPredicate<? super Path.Element<?>, ? super Path.Element<?>> p) final int
Path.lastIndexOf
(Path<?> path, BiPredicate<? super Path.Element<?>, ? super Path.Element<?>> p) final int
Path.lastIndexOf
(Path<?> path, BiPredicate<? super Path.Element<?>, ? super Path.Element<?>> p) static final <T> Path<T>
Path.of
(Qualifiers<? extends String, ?> pathQualifiers, List<? extends Path.Element<?>> elements, Path.Element<? extends T> lastElement) Return a (usually new)Path
formed from the supplied arguments and returns it.final <U> Path<U>
Path.plus
(Collection<? extends Path.Element<?>> elements, Path.Element<? extends U> lastElement) Returns a newPath
consisting of thisPath
's qualifiers, thisPath
's elements, the suppliedelements
, and the suppliedlastElement
.final boolean
Path.startsWith
(Path<?> other, BiPredicate<? super Path.Element<?>, ? super Path.Element<?>> p) final boolean
Path.startsWith
(Path<?> other, BiPredicate<? super Path.Element<?>, ? super Path.Element<?>> p) final @Experimental Path<T>
Path.transliterate
(BiFunction<? super String, ? super Path.Element<?>, ? extends Path.Element<?>> f) Transliterates thisPath
into another, semantically equivalentPath
by applying the suppliedBiFunction
, and returns the transliteratedPath
.final @Experimental Path<T>
Path.transliterate
(BiFunction<? super String, ? super Path.Element<?>, ? extends Path.Element<?>> f) Transliterates thisPath
into another, semantically equivalentPath
by applying the suppliedBiFunction
, and returns the transliteratedPath
.ModifierConstructorDescriptionPath
(Path.Element<? extends T> lastElement) Creates a newPath
.Path
(Qualifiers<? extends String, ?> qualifiers, List<? extends Path.Element<?>> elements, Path.Element<? extends T> lastElement) Creates a newPath
.Path
(Qualifiers<? extends String, ?> qualifiers, Path.Element<? extends T> lastElement) Creates a newPath
.ModifierConstructorDescriptionPath
(Qualifiers<? extends String, ?> qualifiers, List<? extends Path.Element<?>> elements, Path.Element<? extends T> lastElement) Creates a newPath
.