|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.modules.ref.StrongReference<T,A>
T - the reference value typeA - the attachment typepublic class StrongReference<T,A>
A strong reference with an attachment. Since strong references are always reachable, a reaper may not be used.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.modules.ref.Reference |
|---|
Reference.Type |
| Constructor Summary | |
|---|---|
StrongReference(T value)
|
|
StrongReference(T value,
A attachment)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StrongReference(T value,
A attachment)
public StrongReference(T value)
| Method Detail |
|---|
public T get()
Referencenull if the reference has been cleared.
get in interface Reference<T,A>public void clear()
Reference
clear in interface Reference<T,A>public A getAttachment()
Reference
getAttachment in interface Reference<T,A>public Reference.Type getType()
Reference
getType in interface Reference<T,A>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||