final case class Path extends Product with Serializable
- Self Type
- Path
- Alphabetic
- By Inheritance
- Path
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(other: Path): Path
Combines two paths together to create a new one.
Combines two paths together to create a new one. In the process it will remove all extra slashes from the final path, leaving only the ones that are at the ends.
- def /(name: String): Path
Appends a segment at the end of the path.
Appends a segment at the end of the path. To append a trailing slash use an empty string.
- def /(name: Extractor): Path
- def /:(name: String): Path
Prepends the path with the provided segment.
Prepends the path with the provided segment. To prepend a leading slash use an empty string.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addTrailingSlash: Path
Appends a trailing slash to the path
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def concat(other: Path): Path
Named alias to
++
operator - def drop(n: Int): Path
Drops segments from the beginning of the path.
- def dropLast(n: Int): Path
Drops segments from the end of the path.
- def dropTrailingSlash: Path
Drops the trailing slash if available
- def encode: String
Encodes the current path into a valid string
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def initial: Path
Returns a new path that contains only the inital segments, leaving the last segment.
- def isEmpty: Boolean
Checks if the path is equal to ""
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRoot: Boolean
Checks if the path is equal to "/"
- def last: Option[String]
Returns a the last element of the path.
Returns a the last element of the path. If the path contains a trailing slash,
None
will be returned. - def lastSegment: Option[Segment]
Returns the last segment of the path
- def leadingSlash: Boolean
Checks if the path contains a leading slash.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
Checks if the path is not equal to ""
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def reverse: Path
Creates a new path from this one with it's segments reversed.
- val segments: Vector[Segment]
- def startsWith(other: Path): Boolean
Checks if the path starts with the provided path
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): Path
Creates a new path with the provided
n
initial segments. - def textSegments: Vector[String]
- def toString(): String
- Definition Classes
- Path → AnyRef → Any
- def trailingSlash: Boolean
Checks if the path contains a trailing slash.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])