public final class Attachments extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Attachments.Key<T>
An attachment key.
|
Constructor and Description |
---|
Attachments() |
Modifier and Type | Method and Description |
---|---|
<T> T |
attach(Attachments.Key<T> key,
T value) |
<T> T |
attachIfAbsent(Attachments.Key<T> key,
T value) |
<T> T |
getAttachment(Attachments.Key<T> key) |
<T> T |
removeAttachment(Attachments.Key<T> key) |
<T> boolean |
removeAttachment(Attachments.Key<T> key,
T value) |
<T> boolean |
replaceAttachment(Attachments.Key<T> key,
T expect,
T replacement) |
public <T> T attach(Attachments.Key<T> key, T value)
public <T> T attachIfAbsent(Attachments.Key<T> key, T value)
public <T> boolean replaceAttachment(Attachments.Key<T> key, T expect, T replacement)
public <T> T removeAttachment(Attachments.Key<T> key)
public <T> boolean removeAttachment(Attachments.Key<T> key, T value)
public <T> T getAttachment(Attachments.Key<T> key)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.