Difference between two maps

前端 未结 7 1528
悲&欢浪女
悲&欢浪女 2021-01-01 17:22

I need to very efficiently compare two maps in Clojure/Java, and return the difference as determined by Java\'s .equals(..), with nil/null equivalent to \"not present\".

7条回答
  •  情歌与酒
    2021-01-01 17:40

    You could also just use Maps.difference(..) method from Google's Guava libraries

提交回复
热议问题