Path

value class Path(tokens: List<PathToken>) : Iterable<PathToken>

Path interface.

Constructors

Path
Link copied to clipboard
common
fun Path(tokens: List<PathToken>)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

iterator
Link copied to clipboard
common
open operator override fun iterator(): Iterator<PathToken>
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

tokens
Link copied to clipboard
common
val tokens: List<PathToken>

Extensions

head
Link copied to clipboard
common
val Path.head: PathToken?
length
Link copied to clipboard
common
val Path.length: Int
plus
Link copied to clipboard
common
operator fun Path.plus(path: Path): Path
tail
Link copied to clipboard
common
val Path.tail: Path?

Returns non-empty optional containing the chain without first segment in case of chain path.