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

io.fintrospect.parameters.Bindable.scala Maven / Gradle / Ivy

There is a newer version: 12.21.1
Show newest version
package io.fintrospect.parameters


/**
  * Allows binding of a value to an entity (eg. query/header/field...)
  */
trait Bindable[T, B <: Binding] {

  /**
    * Bind the value to this parameter
    * User-friendly synonym for -->(), which is why the method is final.
    * @return the binding
    */
  final def of(value: T): Iterable[B] = -->(value)

  /**
    * Bind the value to this parameter
    * @return the binding
    */
  def -->(value: T): Iterable[B]
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy