| Modifier and Type | Field and Description |
|---|---|
| private final A | |
| private volatile T |
| Access | Constructor and Description |
|---|---|
| public | StrongReference(final T
the referent referent, final A the attachment attachment)Construct a new instance. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public T | get()
Implements org. null if the reference has been cleared.
|
| public A | getAttachment()
Implements org. |
| public Reference. | |
| public String |
| attachment | back to summary |
|---|---|
| private final A attachment | |
| referent | back to summary |
|---|---|
| private volatile T referent | |
| StrongReference | back to summary |
|---|---|
| public StrongReference(final T referent, final A attachment) Construct a new instance.
| |
| StrongReference | back to summary |
|---|---|
| public StrongReference(final T referent) Construct a new instance.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Clear the reference. | |
| get | back to summary |
|---|---|
| public T get() Implements org. Doc from org. Get the value, or
| |
| getAttachment | back to summary |
|---|---|
| public A getAttachment() Implements org. Doc from org. Get the attachment, if any.
| |
| getType | back to summary |
|---|---|
| public Reference. Implements org. Doc from org. Get the type of the reference. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |