Java - How to create new Entry (key, value)

前端 未结 11 1544
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 09:55

I\'d like to create new item that similarly to Util.Map.Entry that will contain the structure key, value.

The problem is that

11条回答
  •  悲&欢浪女
    2020-11-27 10:23

    If you are using Clojure, you have another option:

    (defn map-entry
      [k v]
      (clojure.lang.MapEntry/create k v))
    

提交回复
热议问题