Attributed

sbt.internal.util.Attributed
See theAttributed companion object
final case class Attributed[D](data: D)(metadata: AttributeMap)

Associates a metadata map with data.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def get[T](key: AttributeKey[T]): Option[T]

Retrieves the associated value of key from the metadata.

Retrieves the associated value of key from the metadata.

Attributes

def map[T](f: D => T): Attributed[T]

Transforms the data by applying f.

Transforms the data by applying f.

Attributes

def put[T](key: AttributeKey[T], value: T): Attributed[D]

Defines a mapping key -> value in the metadata.

Defines a mapping key -> value in the metadata.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields