Deep copy Map in Groovy

后端 未结 5 2114
眼角桃花
眼角桃花 2020-12-15 17:26

How can I deep copy a map of maps in Groovy? The map keys are Strings or Ints. The values are Strings, Primitive Objects or other maps, in a recursive way.

5条回答
  •  甜味超标
    2020-12-15 17:58

    I am afraid you have to do it the clone way. You could give Apache Commons Lang SerializationUtils a try

提交回复
热议问题