freeObject

open fun freeObject(@NonNull obj: PoolObject)

Stores an object instance in the pool to make it available for a subsequent call to newObject() (the object is considered free).

Parameters

obj

the object to store in the pool and that will be finalized