LinkSource
An implementation trait for attachments. Clients should inherit from Container instead.
An implementation trait for attachments. Clients should inherit from Container instead.
Value members
Concrete methods
The list of all keys and values attached to this container.
The list of all keys and values attached to this container.
The attachment corresponding to key
.
The attachment corresponding to key
.
- Throws
- NoSuchElementException
if no attachment with key exists
The attachment corresponding to key
, or default
if no attachment with key
exists.
The attachment corresponding to key
, or default
if no attachment with key
exists.
Add attachment with given key
and value
.
Add attachment with given key
and value
.
- Returns
Optionally, the old attachment with given
key
if one existed before. The new attachment is added at the position of the old one, or at the end if no attachment with samekey
existed.