Reference and its subtypes, and Reaper for more information.
| Modifier and Type | Interface and Description |
|---|---|
| pack-priv interface | Reapable<
the reference type T, the reference attachment type A>A reference which is reapable (can be automatically collected). |
| public interface | |
| public interface | Reference<
the reference value type T, the attachment type A>An enhanced reference type with a type-safe attachment. |
| Modifier and Type | Class and Description |
|---|---|
| public class | PhantomReference<
the reference value type T, the attachment type A>A reapable phantom reference with an attachment. |
| public class | References
A set of utility methods for reference types. |
| public class | SoftReference<
the reference value type T, the attachment type A>A reapable soft reference with an attachment. |
| public class | StrongReference<
the reference value type T, the attachment type A>A strong reference with an attachment. |
| public class | WeakReference<
the reference value type T, the attachment type A>A reapable weak reference with an attachment. |