detach abstract method

void detach(
  1. Object detach
)

Detaches this finalizer from values attached with detach.

If this finalizer was attached multiple times to the same object with different detachment keys, only those attachments which used detach are removed.

After detaching, an attachment won't cause any callbacks to happen if the object become inaccessible.

Implementation

void detach(Object detach);