All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ba.sake.sharaf.Path.scala Maven / Gradle / Ivy

package ba.sake.sharaf

final class Path private (
    val segments: Seq[String]
) {
  override def toString(): String =
    val p = segments.mkString("/")
    s"Path($p)"
}

object Path:
  def apply(segments: String*): Path = new Path(segments.toSeq)

  def unapplySeq(path: Path): Option[Seq[String]] = Some(path.segments)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy