public final class TypedKey<A>
extends java.lang.Object
TypedMap
or any object
with typed keys. This class uses reference equality for comparisons, so each new instance is
different key.Constructor and Description |
---|
TypedKey(play.api.libs.typedmap.TypedKey<A> underlying) |
Modifier and Type | Method and 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(java.lang.String displayName)
Creates a TypedKey with the given name.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public TypedKey(play.api.libs.typedmap.TypedKey<A> underlying)
public play.api.libs.typedmap.TypedKey<A> asScala()
public TypedEntry<A> bindValue(A value)
value
- The value to bind this key to.public static <A> TypedKey<A> create()
A
- The type of value this key is associated with.public static <A> TypedKey<A> create(java.lang.String displayName)
A
- The type of value this key is associated with.displayName
- The name to display when printing this key.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object