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

io.youi.net.Param.scala Maven / Gradle / Ivy

The newest version!
package io.youi.net

case class Param(values: List[String] = Nil) {
  lazy val value: String = values.mkString(", ")

  def withValue(value: String, append: Boolean = true): Param = {
    val updated = if (append) values ::: List(value) else List(value)
    Param(updated)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy