- Found in:
- JContainers
Description
Documentation Comment
Handly for temporary objects (objects with no owners) - the pool 'locationName' owns any amount of objects, preventing their destuction, extends lifetime.
Do not forget to clean the pool later! Typical use:
int jTempMap = JValue.addToPool(JMap.object(), "uniquePoolName")
int jKeys = JValue.addToPool(JMap.allKeys(someJMap), "uniquePoolName")
and anywhere later:
JValue.cleanPool("uniquePoolName")
Parameters
intobject
stringpoolName
Examples
Auto-Generated Example
int myInt__object
string myString__poolName
int returnedValue = JValue.addToPool(myInt__object, myString__poolName)