
T - the reference value typeA - the attachment typepublic class StrongReference<T,A> extends Object implements Reference<T,A>
Reference.Type| Constructor and Description |
|---|
StrongReference(T value) |
StrongReference(T value,
A attachment) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the reference.
|
T |
get()
Get the value, or
null if the reference has been cleared. |
A |
getAttachment()
Get the attachment, if any.
|
Reference.Type |
getType()
Get the type of the reference.
|
String |
toString() |
public StrongReference(T value)
public T get()
Referencenull if the reference has been cleared.public void clear()
Referencepublic A getAttachment()
ReferencegetAttachment in interface Reference<T,A>public Reference.Type getType()
ReferenceCopyright © 2013 JBoss by Red Hat. All Rights Reserved.