Package play.libs.typedmap
Class TypedKey<A>
- Object
-
- play.libs.typedmap.TypedKey<A>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description play.api.libs.typedmap.TypedKey<A>asScala()TypedEntry<A>bindValue(A value)Bind this key to a value.static <A> TypedKey<A>create()Creates a TypedKey without a name.static <A> TypedKey<A>create(String displayName)Creates a TypedKey with the given name.booleanequals(Object obj)inthashCode()StringtoString()
-
-
-
Constructor Detail
-
TypedKey
public TypedKey(play.api.libs.typedmap.TypedKey<A> underlying)
-
-
Method Detail
-
asScala
public play.api.libs.typedmap.TypedKey<A> asScala()
- Returns:
- the underlying Scala TypedKey which this instance wraps.
-
bindValue
public TypedEntry<A> bindValue(A value)
Bind this key to a value.- Parameters:
value- The value to bind this key to.- Returns:
- A bound value.
-
create
public static <A> TypedKey<A> create()
Creates a TypedKey without a name.- Type Parameters:
A- The type of value this key is associated with.- Returns:
- A fresh key.
-
create
public static <A> TypedKey<A> create(String displayName)
Creates a TypedKey with the given name.- Type Parameters:
A- The type of value this key is associated with.- Parameters:
displayName- The name to display when printing this key.- Returns:
- A fresh key.
-
-