- Found in:
- JContainers
intfunctionexchangeInt(intobject, stringpath, intvalue, boolcreateMissingKeys=false, intonErrorReturn=0)NativeGlobal
Description
Documentation Comment
Exchanges the value at the @path with the @value. Returns previous value.
Caveats
Parameters
intobject
stringpath
intvalue
boolcreateMissingKeys=false
intonErrorReturn=0
Examples
Auto-Generated Example
int myInt__object
string myString__path
int myInt__value
bool myBool__createMissingKeys
int myInt__onErrorReturn
int returnedValue = JAtomic.exchangeInt(myInt__object, myString__path, myInt__value, myBool__createMissingKeys, myInt__onErrorReturn)