- Type Parameters:
T - referent class.
- All Implemented Interfaces:
Ref<T>
public final class StrongRef<T>
extends Object
implements Ref<T>
A strong reference wrapper, complying to the
Ref interface.
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StrongRef
public StrongRef(T referent)
Constructor.
- Parameters:
referent - the referent.
-
Method Details
-
get
Description copied from interface: Ref
Retrieves the referent. In case of
WeakRefs, the return value may become
null.
- Specified by:
get in interface Ref<T>
- Returns:
- the referent.