AttributeContainer
An immutable container that holds attribute keys and their values in a type-safe manner.
Properties
Functions
Returns true if this container contains all of the specified keys. If no keys are specified, this returns true (vacuous truth).
Returns true if this container contains any of the specified keys. If no keys are specified, this returns false.
Returns true if this container contains the specified key.
Returns a new AttributeContainer containing only the attributes whose keys match the predicate.
Retrieves the attribute value for the specified key. If not set, it returns the AttributeKey.defaultValue defined in the key.
Returns true if this container has at least one attribute.
Returns a new AttributeContainer with the specified key removed.
Returns a new AttributeContainer with the specified key-value pair.
Returns a new AttributeContainer containing all attributes from this and the other. If keys collide, values from other take precedence (overwrite).
Returns a new AttributeContainer with the specified key mapped to the value.