Class Pointer.CustomDeallocator
java.lang.Object
java.lang.ref.Reference<Pointer>
java.lang.ref.PhantomReference<Pointer>
org.bytedeco.javacpp.Pointer.DeallocatorReference
org.bytedeco.javacpp.Pointer.CustomDeallocator
- All Implemented Interfaces:
Pointer.Deallocator, Pointer.ReferenceCounter
- Enclosing class:
Pointer
A
Pointer.Deallocator that calls, during garbage collection, a method with signature
static void deallocate() from the Pointer object passed to the constructor
and that accepts it as argument. Uses reflection to locate and call the method.- See Also:
-
Field Summary
FieldsFields inherited from class Pointer.DeallocatorReference
bytes, count, deallocator, head, next, prev, totalBytes, totalCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Pointer.DeallocatorReference
add, clear, count, release, remove, retainMethods inherited from class PhantomReference
getMethods inherited from class Reference
clone, enqueue, isEnqueued, reachabilityFence, refersTo
-
Field Details
-
Constructor Details
-
CustomDeallocator
-
-
Method Details
-
deallocate
public void deallocate()- Specified by:
deallocatein interfacePointer.Deallocator- Overrides:
deallocatein classPointer.DeallocatorReference
-
toString
- Overrides:
toStringin classPointer.DeallocatorReference
-