Packages

final case class Segment(head: String, tail: SlashOrEmpty) extends Path with Product with Serializable

Source
Uri.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Segment
  2. Serializable
  3. Product
  4. Equals
  5. Path
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Segment(head: String, tail: SlashOrEmpty)

Type Members

  1. type Head = String
    Definition Classes
    SegmentPath

Value Members

  1. def +(pathString: String): Path
    Definition Classes
    Path
  2. def ++(suffix: Path): Path
    Definition Classes
    SegmentPath
  3. def /(segment: String): Path
    Definition Classes
    Path
  4. def ::(segment: String): Path
    Definition Classes
    SegmentPath
  5. def ::(c: Char): Path
    Definition Classes
    Path
  6. def ?/(segment: String): Path

    Appends two path segments while avoiding a double slash between them Example: - Path("abc") ?/ "def" returns Path("abc/def") - Path("abc/") ?/ "def" returns Path("abc/def")

    Appends two path segments while avoiding a double slash between them Example: - Path("abc") ?/ "def" returns Path("abc/def") - Path("abc/") ?/ "def" returns Path("abc/def")

    segment

    The path segment to be appended

    returns

    The final concatenated path segment

    Definition Classes
    Path
  7. def charCount: Int
    Definition Classes
    SegmentPath
  8. def dropChars(count: Int): Path
    Definition Classes
    SegmentPath
  9. final def endsWith(suffix: String, ignoreTrailingSlash: Boolean = false): Boolean
    Definition Classes
    Path
  10. def endsWithSlash: Boolean
    Definition Classes
    Path
  11. val head: String
    Definition Classes
    SegmentPath
  12. def isEmpty: Boolean
    Definition Classes
    SegmentPath
  13. def length: Int
    Definition Classes
    SegmentPath
  14. def productElementNames: Iterator[String]
    Definition Classes
    Product
  15. def reverse: Path
    Definition Classes
    Path
  16. def reverseAndPrependTo(prefix: Path): Path
    Definition Classes
    SegmentPath
  17. def startsWith(that: Path): Boolean
    Definition Classes
    SegmentPath
  18. def startsWithSegment: Boolean
    Definition Classes
    SegmentPath
  19. def startsWithSlash: Boolean
    Definition Classes
    SegmentPath
  20. val tail: SlashOrEmpty
    Definition Classes
    SegmentPath
  21. def toString(): String
    Definition Classes
    Path → AnyRef → Any