public void swapAccounts ( Database other ) { Account otherRoot = other . rootAccount ; other . rootAccount = rootAccount ; rootAccount = otherRoot ; boolean otherDirty = other . dirty ; other . dirty = dirty ; dirty = otherDirty ; HashMap < String , String > otherGlobalSettings = other . globalSettings ; other . globalSettings = globalSettings ; globalSettings = otherGlobalSettings ; }
Is is so that the after an database is loaded we can reuse this object This does not swap listeners .