
io.fintrospect.parameters.OptionalBindable.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fintrospect_2.10 Show documentation
Show all versions of fintrospect_2.10 Show documentation
Library that adds self-documentation to Finagle server endpoint services
package io.fintrospect.parameters
/**
* For optional Parameters, adds the ability to bind an Optional value as well as a concrete value
*/
trait OptionalBindable[T, B <: Binding] extends Bindable[T, B] {
def -->(value: Option[T]): Iterable[B] = value.map(-->).getOrElse(Nil)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy