BlinkReceipt SDK
Toggle table of contents
JVM
Target filter
JVM
Switch theme
Search in API
Skip to content
BlinkReceipt SDK
blinkreceipt-camera
/
com.microblink.camera.util.pool
/
ObjectPool
Object
Pool
open
class
ObjectPool
Created by dodo on 17/11/14.
Members
Constructors
Object
Pool
Link copied to clipboard
constructor
(
@
NonNull
factory
:
PoolObjectFactory
,
maxSize
:
Int
)
Constructor.
Functions
free
Object
Link copied to clipboard
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).
new
Object
Link copied to clipboard
@
NonNull
open
fun
newObject
(
)
:
PoolObject
Creates a new object or returns a free object from the pool.