java.lang.ref.Reference
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Reference.Type
A reference type. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public T | |
| public A | |
| public Reference. |
| clear | back to summary |
|---|---|
| public void clear() Clear the reference. | |
| get | back to summary |
|---|---|
| public T get() Get the value, or
| |
| getAttachment | back to summary |
|---|---|
| public A getAttachment() Get the attachment, if any.
| |
| getType | back to summary |
|---|---|
| public Reference. Get the type of the reference. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Reference. | NULL
A |
| public static final Reference. | PHANTOM
A phantom reference. |
| public static final Reference. | SOFT
A soft reference. |
| public static final Reference. | STRONG
A strong reference. |
| public static final Reference. | WEAK
A weak reference. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Reference. | |
| public static Reference. |
| NULL | back to summary |
|---|---|
| public static final Reference. A | |
| PHANTOM | back to summary |
|---|---|
| public static final Reference. A phantom reference. | |
| SOFT | back to summary |
|---|---|
| public static final Reference. A soft reference. | |
| STRONG | back to summary |
|---|---|
| public static final Reference. A strong reference. | |
| WEAK | back to summary |
|---|---|
| public static final Reference. A weak reference. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static Reference. | |
| values | back to summary |
|---|---|
| public static Reference. | |