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
.
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.
Optionally get attachment corresponding to key
Optionally get attachment corresponding to key
Add attachment with given key
and value
.
Add attachment with given key
and value
.
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 same key
existed.
Remove attachment with given key
, if it exists.
Remove attachment with given key
, if it exists.
Optionally, the removed attachment with given key
if one existed before.
A trait for objects that can contain attachments