学习了。 但是这个方法类型为IdMapping的参数是起什么作用的? 英文解释如下,看不大明白。
IdMapping is used by the deep
clone operation to map ObjectIds between original
objects and their clones (using IdPairs).
There is no method provided to clear all entries in an
instance of IdMapping. A new instance must be
created for each use in a deep clone operation. Making IdMapping unique for each deep clone operation makes it
possible to use the instance address as a distinguishing identifier in deep
clone notification.
IdPair instances that have been
added to the map are destroyed when the IDMapping
instance is destroyed.
|