MemoryDBProvider.clone()method
clone(): MemoryDBProvider<I, T>
Clone this provider into a new plain MemoryDBProvider containing the same items.
- Shallow: new tables and maps sharing the same (immutable) item instances, so cloning is cheap and unchanged items keep their identity.
- The clone is always a plain
MemoryDBProviderwith plainMemoryTables, even when called on a subclass — writes to the clone only touch its own memory, never a subclass's backing store (e.g.StorageDBProviderpersistence).