toPointer method

JObjectPtr toPointer()

Similar to pointer.

Detaches the finalizer so the underlying pointer will not be deleted.

Implementation

JObjectPtr toPointer() {
  _setAsReleased();
  return _finalizable.pointer;
}