T
- the reference value typeA
- the attachment typePhantomReference
, SoftReference
, StrongReference
, WeakReference
public interface Reference<T,A>
Reference
Modifier and Type | Interface | Description |
---|---|---|
static class |
Reference.Type |
A reference type.
|
Modifier and Type | Method | 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.
|
T get()
null
if the reference has been cleared.A getAttachment()
void clear()
Reference.Type getType()
Copyright © 2022 JBoss by Red Hat. All rights reserved.