| Modifier and Type | Method and Description |
|---|---|
| public < the list value type T> void | addToAttachmentList(AttachmentKey<AttachmentList<T>>
the attachment key key, T the value to add value)Add a value to a list-typed attachment key. |
| public < the value type T> T | Returns: the value, ornull if there is nonethe attachment key key)Get an attachment value. |
| public < the value type T> List | Returns: the value, or an empty list if there is nonethe attachment key key)Gets a list attachment value. |
| public < the value type T> T | Returns: the old value, ornull if there was nonethe attachment key key, T the new value value)Set an attachment value. |
| public < the value type T> T | Returns: the old value, ornull if there was nonethe attachment key key)Remove an attachment, returning its previous value. |
| addToAttachmentList | back to summary |
|---|---|
| public <T> void addToAttachmentList(AttachmentKey<AttachmentList<T>> key, T value) Add a value to a list-typed attachment key. If the key is not mapped, add such a mapping.
| |
| getAttachment | back to summary |
|---|---|
| public <T> T getAttachment(AttachmentKey<T> key) Get an attachment value. If no attachment exists for this key,
| |
| getAttachmentList | back to summary |
|---|---|
| public <T> List 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(AttachmentKey<T> key, T value) 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(AttachmentKey<T> key) Remove an attachment, returning its previous value.
| |