bindableInt

play.api.mvc.QueryStringBindable.bindableInt
object bindableInt extends Parsing[Int]

QueryString binder for Int.

Attributes

Graph
Supertypes
class Parsing[Int]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def bind(key: String, params: Map[String, Seq[String]]): Option[Either[String, Int]]

Bind a query string parameter.

Bind a query string parameter.

Value parameters

key

Parameter key

params

QueryString data

Attributes

Returns

None if the parameter was not present in the query string data. Otherwise, returns Some of either Right of the parameter value, or Left of an error message if the binding failed.

Inherited from:
Parsing

Javascript function to unbind in the Javascript router.

Javascript function to unbind in the Javascript router.

Attributes

Inherited from:
QueryStringBindable
def transform[B](toB: Int => B, toA: B => Int): QueryStringBindable[B]

Transform this QueryStringBindable[A] to QueryStringBindable[B]

Transform this QueryStringBindable[A] to QueryStringBindable[B]

Attributes

Inherited from:
QueryStringBindable
def unbind(key: String, value: Int): String

Unbind a query string parameter.

Unbind a query string parameter.

Value parameters

key

Parameter key

value

Parameter value.

Attributes

Returns

a query string fragment containing the key and its value. E.g. "foo=42"

Inherited from:
Parsing