Trait/Object

sbt.internal.util

AttributeMap

Related Docs: object AttributeMap | package util

Permalink

trait AttributeMap extends AnyRef

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. AttributeMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

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

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

    Permalink

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

  3. abstract def apply[T](k: AttributeKey[T]): T

    Permalink

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

    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.

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

    Permalink

    Returns true if this map contains a mapping for k.

    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.

  5. abstract def entries: Iterable[AttributeEntry[_]]

    Permalink

    All mappings in this map.

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

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

    Permalink

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

    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.

  7. abstract def isEmpty: Boolean

    Permalink

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

  8. abstract def keys: Iterable[AttributeKey[_]]

    Permalink

    All keys with defined mappings.

    All keys with defined mappings. There may be multiple keys with the same label, but different types.

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

    Permalink

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

    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.

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

    Permalink

    Returns this map without the mapping for k.

    Returns this map without the mapping for k. This method will not remove a mapping for a key with the same label but a different type.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped