yegor256 / cactoos

Object-Oriented Java primitives, as an alternative to Google Guava and Apache Commons
https://www.cactoos.org
MIT License
737 stars 163 forks source link

MapOf(map, X, Y) #1618

Closed yegor256 closed 3 years ago

yegor256 commented 3 years ago

How about we introduce a new ctor for MapOf, which will accept the existing Map, a new key X, and a new value Y. This will be much more convenient than creating an instance of Map.Entry for a single entry.

victornoel commented 3 years ago

@yegor256 ok let's do that as well a introduce MapOf(X, Y). And also update the javadoc of the class because it's clearly incorrect.

victornoel commented 3 years ago

@0crat in

victornoel commented 3 years ago

@yegor256 this was implemented in #1625

yegor256 commented 3 years ago

@victornoel thanks!

victornoel commented 2 years ago

@0crat status

victornoel commented 2 years ago

@0crat status