Container
A trait for objects that can contain attachments
A trait for objects that can contain attachments
Value members
Concrete methods
Inherited methods
The list of all keys and values attached to this container.
The list of all keys and values attached to this container.
- Inherited from
- LinkSource
The attachment corresponding to key.
The attachment corresponding to key.
- Throws
- NoSuchElementException
if no attachment with key exists
- Inherited from
- LinkSource
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.
- Inherited from
- LinkSource
Optionally get attachment corresponding to key
Optionally get attachment corresponding to key
- Inherited from
- LinkSource
Does an attachment corresponding to key exist?
Does an attachment corresponding to key exist?
- Inherited from
- LinkSource
Add attachment with given key and value.
Add attachment with given key and value.
- Returns
Optionally, the old attachment with given
keyif one existed before. The new attachment is added at the position of the old one, or at the end if no attachment with samekeyexisted.- Inherited from
- LinkSource
Remove attachment with given key, if it exists.
Remove attachment with given key, if it exists.
- Returns
Optionally, the removed attachment with given
keyif one existed before.- Inherited from
- LinkSource