Package-level declarations
Types
Specifies a key for an attribute
Immutable type safe property bag
A multi-value cache which supports retrieval and invalidation via a key paired with each value. The get and invalidate methods are suspend
functions to allow for cross-context synchronization and potentially-expensive value lookup.
Mutable type safe property bag
A mutable collection similar to a MutableMap except it allows multiple values to be associated with a single key. The associated values are not necessarily distinct (e.g., key foo
may be associated with value bar
multiple times).
Functions
Return a new set of attributes using AttributesBuilder.
Returns an empty read-only set of attributes
Returns an empty new mutable set of attributes
Return a new set of mutable attributes using AttributesBuilder.
Create a new MutableMultiMap from the given key-value pairs.
Inherited functions
Appends a value to a list-typed attribute. If the attribute does not exist, it will be created.
Gets a value of the attribute for the specified key or throws an IllegalStateException if key does not exist
Merge another attributes instance into this set of attributes favoring other
Set a value for key only if it is not already set
Removes an attribute with the specified key and returns its current value, throws an exception if an attribute doesn't exist
Removes an attribute with the specified key and returns its current value, returns null
if an attribute doesn't exist
Returns a new MutableAttributes instance with elements from this set of attributes.