Package: org.codehaus.groovy.util

## [Java] Interface Reference<T, V extends Finalizable>

-     public interface Reference<T, V extends Finalizable>

  Abstraction over reference implementations that keep a cleanup handler alongside the referent.

  Type Parameters:
    `T` - the referent type
    `V` - the handler type

- - ### Methods Summary

    Methods
    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.

- - ### Method Detail

    - #### public void clear()

      Clears the current referent.

    - #### public T get()

      Returns the current referent.

      Returns:
        the referent, or `null` if it is no longer available

    - #### public V getHandler()

      Returns the handler that should be notified when the reference is processed.

      Returns:
        the associated handler