TypedKey

play.api.libs.typedmap.TypedKey
See theTypedKey companion class
object TypedKey

Helper for working with TypedKeys.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TypedKey.type

Members list

Value members

Concrete methods

def apply[A]: TypedKey[A]

Creates a TypedKey without a name.

Creates a TypedKey without a name.

Type parameters

A

The type of value this key is associated with.

Attributes

Returns

A fresh key.

def apply[A](displayName: String): TypedKey[A]

Creates a TypedKey with the given name.

Creates a TypedKey with the given name.

Type parameters

A

The type of value this key is associated with.

Value parameters

displayName

The name to display when printing this key.

Attributes

Returns

A fresh key.