Packages

final class AttributeMap extends AnyRef

An immutable map where an AttributeKey for a fixed type T can only be associated with values of type T. Because the equality of keys is based on reference, it is therefore possible for this map to contain mappings for keys with the same label and same types.

Source
AttributeMap.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AttributeMap
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def ++(o: AttributeMap): AttributeMap

    Combines the mappings in o with the mappings in this map, with mappings in o taking precedence over existing mappings.

  2. def ++(o: Iterable[AttributeEntry[_]]): AttributeMap

    Adds the mappings in o to this map, with mappings in o taking precedence over existing mappings.

  3. def --(k: AttributeKey[_]): AttributeMap

    Removes an attribute key from the map

  4. def apply[T](k: AttributeKey[T]): T

    Gets the value of type T associated with the key k.

  5. def contains[T](k: AttributeKey[T]): Boolean

    Returns true if this map contains a mapping for k.

  6. def entries: Iterable[AttributeEntry[_]]

    All mappings in this map.

    All mappings in this map. The AttributeEntry type preserves the typesafety of mappings, although the specific types are unknown.

  7. def get[T](k: AttributeKey[T]): Option[T]

    Gets the value of type T associated with the key k or None if no value is associated.

  8. def isEmpty: Boolean

    true if there are no mappings in this map, false if there are.

  9. def keys: Iterable[AttributeKey[_]]

    All keys with defined mappings.

  10. def put[T](k: AttributeKey[T], value: T): AttributeMap

    Adds the mapping k -> value to this map, replacing any existing mapping for k.

  11. def remove[T](k: AttributeKey[T]): AttributeMap

    Returns this map without the mapping for k.