ObjectPool
This class define a simple template of object pool pattern.
Example:
val customPool = ObjectPool<Int>()
Content copied to clipboard
Since
1.4.0
Inheritors
Properties
Functions
Link copied to clipboard
Returns the first value, or the result of the defaultValue function if there was no entry.
Link copied to clipboard
Returns the first value, or null if this pool contains no entry.
Link copied to clipboard
Returns the last value, or the result of the defaultValue function if there was no entry.
Link copied to clipboard
Returns the last value, or null if this pool contains no entry.