public class AttachableSupport extends Object implements Attachable
Attachable.| Constructor and Description |
|---|
AttachableSupport() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttachment(AttachmentKey<T> key)
Get the attached object for a given key
|
<T> boolean |
hasAttachment(AttachmentKey<T> key)
True if there is an attached object for a given key
|
<T> T |
putAttachment(AttachmentKey<T> key,
T value)
Attach an arbirtary object with this element.
|
<T> T |
removeAttachment(AttachmentKey<T> key)
Remove an attached object for a given key
|
public <T> T putAttachment(AttachmentKey<T> key, T value)
AttachableputAttachment in interface Attachablepublic <T> T getAttachment(AttachmentKey<T> key)
AttachablegetAttachment in interface Attachablepublic <T> boolean hasAttachment(AttachmentKey<T> key)
AttachablehasAttachment in interface Attachablepublic <T> T removeAttachment(AttachmentKey<T> key)
AttachableremoveAttachment in interface AttachableCopyright © 2014 JBoss by Red Hat. All Rights Reserved.