tripkit-android / com.skedgo.tripkit.common.util / AbstractObjectPool
AbstractObjectPool
abstract class AbstractObjectPool<T :
Any
!>
Constructors
Name |
Summary |
<init> |
AbstractObjectPool() |
Functions
Name |
Summary |
newObject |
By default, attempts to invoke a no-arg constructor on class T. open fun newObject(): T |
onRecycle |
Gives subclasses the chance to perform additional operations on an object before it is recycled.open fun onRecycle(obj: T): Unit |
retrieve |
fun retrieve(): T |
save |
fun save(obj: T): Unit |
Inheritors