Add support for default values to Multimap#get
Motivation:
When using MultiMap, I want my code to be more readable, therefore, I want to use Map#getOrDefault - alike methods.
I think we can have this however it should be named get following the same pattern than JsonObject and JsonArray uses
@vietj hi! I couldn't find JsonObject#get or JsonArray#get with default values. Could you please provide more details? getOrDefault seems to be intuitive and it's called like this in JDK's Map UPDATE: okay, found JsonObject#getString.
@vietj I will rename to get(String,String) but personally to me it's confusing.
JsonObject has get*, getString, getValue, etc...
it might be confusing but then people used to JsonObject/JsonArray would be confused too :-)
On 9 Jun 2020, at 19:52, Anatolii Papenko [email protected] wrote:
@vietj https://github.com/vietj I will rename to get(String,String) but personally to me it's confusing.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/eclipse-vertx/vert.x/pull/3439#issuecomment-641475203, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABXDCWTYYNWJ63OJVBCONDRVZZHTANCNFSM4NZT6UUQ.
@vietj done
@vietj can we merge this?
@privettoli sorry I had pending review for this and I just published now