Package play.libs.typedmap
Class TypedKey<A>
java.lang.Object
play.libs.typedmap.TypedKey<A>
A TypedKey is a key that can be used to get and set values in a
TypedMap or any object
with typed keys. This class uses reference equality for comparisons, so each new instance is
different key.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TypedKey
-
-
Method Details
-
asScala
- Returns:
- the underlying Scala TypedKey which this instance wraps.
-
bindValue
Bind this key to a value.- Parameters:
value- The value to bind this key to.- Returns:
- A bound value.
-
create
Creates a TypedKey without a name.- Type Parameters:
A- The type of value this key is associated with.- Returns:
- A fresh key.
-
create
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.
-
toString
-
hashCode
public int hashCode() -
equals
-