open fun swap(newTarget: Any): Any
Swap the target, returning the old target object.
newTarget - the new target object
newTarget
IllegalArgumentException - if the new target is invalid
IllegalArgumentException
Return the old target object