public interface Reference<T, V extends Finalizable>
Abstraction over reference implementations that keep a cleanup handler alongside the referent.
T - the referent typeV - the handler type| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
clear()Clears the current referent. |
|
public T |
get()Returns the current referent. |
|
public V |
getHandler()Returns the handler that should be notified when the reference is processed. |