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

io.github.simplifier_ag.scala.spdf.ObjectParamShow.scala Maven / Gradle / Ivy

package io.github.simplifier_ag.scala.spdf

trait ObjectParamShow[T] extends ParamShow[T]

object ObjectParamShow {
  implicit object BooleanObjectParamShow extends ObjectParamShow[Boolean] {
    override def show(name: String, value: Boolean): Iterable[String] = {
      if(value)
        formatObjectParam(name)
      else
        Iterable.empty
    }
  }

  private def formatObjectParam(name: String): Iterable[String] = Seq(name)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy