| Modifier and Type | Field and Description |
|---|---|
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> void | addToAttachmentList(final AttachmentKey<AttachmentList<T>>
the attachment key key, final T the value to add value)Implements io. Add a value to a list-typed attachment key. |
| protected Map | |
| public <T> T | getAttachment(final AttachmentKey<T>
the attachment key key)Implements io. Get an attachment value. |
| public <T> List | getAttachmentList(AttachmentKey<? extends List<T>>
the attachment key key)Implements io. Gets a list attachment value. |
| public <T> T | putAttachment(final AttachmentKey<T>
the attachment key key, final T the new value value)Implements io. Set an attachment value. |
| public <T> T | removeAttachment(final AttachmentKey<T>
the attachment key key)Implements io. Remove an attachment, returning its previous value. |
| attachments | back to summary |
|---|---|
| private Map<AttachmentKey<?>, Object> attachments | |
| AbstractAttachable | back to summary |
|---|---|
| public AbstractAttachable() | |
| addToAttachmentList | back to summary |
|---|---|
| public <T> void addToAttachmentList(final AttachmentKey<AttachmentList<T>> key, final T value) Implements io. Doc from io. Add a value to a list-typed attachment key. If the key is not mapped, add such a mapping.
| |
| createAttachmentMap | back to summary |
|---|---|
| protected Map | |
| getAttachment | back to summary |
|---|---|
| public <T> T getAttachment(final AttachmentKey<T> key) Implements io. Doc from io. Get an attachment value. If no attachment exists for this key,
| |
| getAttachmentList | back to summary |
|---|---|
| public <T> List Implements io. Doc from io. Gets a list attachment value. If not attachment exists for this key an empty list is returned
| |
| putAttachment | back to summary |
|---|---|
| public <T> T putAttachment(final AttachmentKey<T> key, final T value) Implements io. Doc from io. Set an attachment value. If an attachment for this key was already set, return the original value. If the value being set
is
| |
| removeAttachment | back to summary |
|---|---|
| public <T> T removeAttachment(final AttachmentKey<T> key) Implements io. Doc from io. Remove an attachment, returning its previous value.
| |