An immutable map where a key is the tuple (String,T)
for a fixed type T
and can only be
associated with values of type T
. It is therefore possible for this map to contain mappings for
keys with the same label but different types. Excluding this possibility is the responsibility of
the client if desired.
- Companion:
- object
Value members
Abstract methods
Adds the mappings in o
to this map, with mappings in o
taking precedence over existing
mappings.
Adds the mappings in o
to this map, with mappings in o
taking precedence over existing
mappings.
Combines the mappings in o
with the mappings in this map, with mappings in o
taking
precedence over existing mappings.
Combines the mappings in o
with the mappings in this map, with mappings in o
taking
precedence over existing mappings.
Gets the value of type T
associated with the key k
. If a key with the same label but
different type is defined, this method will fail.
Gets the value of type T
associated with the key k
. If a key with the same label but
different type is defined, this method will fail.
Returns true if this map contains a mapping for k
. If a key with the same label but a
different type is defined in this map, this method will return false
.
Returns true if this map contains a mapping for k
. If a key with the same label but a
different type is defined in this map, this method will return false
.
All mappings in this map. The AttributeEntry type preserves the typesafety of mappings, although the specific types are unknown.
All mappings in this map. The AttributeEntry type preserves the typesafety of mappings, although the specific types are unknown.
Gets the value of type T
associated with the key k
or None
if no value is associated. If
a key with the same label but a different type is defined, this method will return None
.
Gets the value of type T
associated with the key k
or None
if no value is associated. If
a key with the same label but a different type is defined, this method will return None
.
true
if there are no mappings in this map, false
if there are.
true
if there are no mappings in this map, false
if there are.
All keys with defined mappings. There may be multiple keys with the same label
, but different
types.
All keys with defined mappings. There may be multiple keys with the same label
, but different
types.
Adds the mapping k -> value
to this map, replacing any existing mapping for k
. Any mappings
for keys with the same label but different types are unaffected.
Adds the mapping k -> value
to this map, replacing any existing mapping for k
. Any mappings
for keys with the same label but different types are unaffected.