how can I access a specific value if a key has multiple values? def color_map = [ 'SUCCESS': ['good', 'succeeded'], 'FAILURE': ['danger', 'failed'] ]
@RaghavPal2 жыл бұрын
Hi Luis, this can help stackoverflow.com/questions/4956844/hashmap-with-multiple-values-under-the-same-key www.baeldung.com/groovy-maps
@EnriqueOlavarria2 жыл бұрын
@@RaghavPal Thanks Raghav!
@subhamthemusicalguy88513 жыл бұрын
Great content
@RaghavPal3 жыл бұрын
Thanks Subham
@vidhyanagi4 жыл бұрын
Really useful. Thank you Raghav. I'm trying to compare two maps which have the same key and same values but in different order. How will I compare these, can you advise please?
@RaghavPal4 жыл бұрын
Hi Vidhya, you can get the values based on keys and then compare
@vidhyanagi4 жыл бұрын
@@RaghavPal thanks Raghav. Do you have an example groovy code for that please?
@RaghavPal4 жыл бұрын
I do not exactly remember if I have added any examples. If you are going through all the videos on the playlist, you may find some
@vidhyanagi4 жыл бұрын
@@RaghavPal ok will do thank you
@madhusudandevaraju12074 жыл бұрын
for me, entrySet() did not show up in the methods list. So, I converted the map to a list and then use the entrySet() to assert. def entries = resLib.toSet().collectEntries().entrySet();
@RaghavPal4 жыл бұрын
Hi Madhusudan, its fine
@depressedknight3694 жыл бұрын
is entry a keyword here..?
@RaghavPal4 жыл бұрын
Hi Anurag, pls refer the time in the video, so I can refer