- Type Parameters:
T- the reference value typeA- the attachment type
- All Known Implementing Classes:
PhantomReference,SoftReference,StrongReference,WeakReference
Deprecated.
An enhanced reference type with a type-safe attachment.
- Author:
- David M. Lloyd
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
get
T get()Deprecated.Get the value, ornullif the reference has been cleared.- Returns:
- the value
-
getAttachment
A getAttachment()Deprecated.Get the attachment, if any.- Returns:
- the attachment
-
clear
void clear()Deprecated.Clear the reference. -
getType
Reference.Type getType()Deprecated.Get the type of the reference.- Returns:
- the type
-
Cleaneror one of the reference types from a support library such asio.smallrye.common:smallrye-common-refinstead.