public class SoftReference<T> extends Reference<T>
Constructor and Description |
---|
SoftReference(T r)
Constructs a new instance of this class.
|
SoftReference(T r,
ReferenceQueue<? super T> q)
Constructs a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
T |
get()
Return the referent of the reference object.
|
clear, clone, enqueue, isEnqueued
public SoftReference(T r, ReferenceQueue<? super T> q)
r
- referent to track.q
- queue to register to the reference object with.public SoftReference(T r)
r
- referent to track.Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 1993, 2023 IBM Corp. and others.