play.api.libs.typedmap

Members list

Type members

Classlikes

final case class TypedEntry[A](key: TypedKey[A], value: A)

An entry that binds a typed key and a value. These entries can be placed into a TypedMap or any other type of object with typed values.

An entry that binds a typed key and a value. These entries can be placed into a TypedMap or any other type of object with typed values.

Type parameters

A

The type of the value.

Value parameters

key

The key for this entry.

value

The value for this entry.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final class 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.

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.

Type parameters

A

The type of values associated with this key.

Value parameters

displayName

The name to display for this key or null if no display name has been provided. This name is only used for debugging. Keys with the same name are not considered to be equal.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object TypedKey

Helper for working with TypedKeys.

Helper for working with TypedKeys.

Attributes

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

A TypedMap is an immutable map containing typed values. Each entry is associated with a TypedKey that can be used to look up the value. A TypedKey also defines the type of the value, e.g. a TypedKey[String] would be associated with a String value.

A TypedMap is an immutable map containing typed values. Each entry is associated with a TypedKey that can be used to look up the value. A TypedKey also defines the type of the value, e.g. a TypedKey[String] would be associated with a String value.

Instances of this class are created with the TypedMap.empty method.

The elements inside TypedMaps cannot be enumerated. This is a decision designed to enforce modularity. It's not possible to accidentally or intentionally access a value in a TypedMap without holding the corresponding TypedKey.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object TypedMap

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
TypedMap.type