I need to save the values ββin map likie this:
val map = HashMap<String, Set<String>>()
But it's hard to interact with Set inside the map.
Does Kotlin have multiprocessor implementations like Multimap in Google Guava ?
No, currently not. And, probably, in the future they will not be.
Link: https://discuss.kotlinlang.org/t/the-standard-library-and-a-kotlin-manifesto/1303/6
Alternative:
org.springframework.util.MultiValueMap org.apache.commons.collections4.MultiMap com.google.common.collect.Multimap
To play using Set in your example, you can:
Set
map["key"].forEach(::println)
Or something else.
Source: https://habr.com/ru/post/1274119/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1274114/how-to-properly-convert-domain-entities-to-dtos-while-considering-scalability-testability&usg=ALkJrhjnBEATaT9k8dNLz6FRRDL3K1UGnwNuget package installation error - invalid URI: administrator / node could not be parsed - visual-studioIs endless endless cyclic unsuccessful practice? - c ++webView.canGoBack () is always false - javaChange color balance Drawable - androidDowngrade Laravel Homestead v7.0.1 with php 7.2 to php 7.1 - laravelUser Defined Definitions and Auto Deletion of Templates - c ++WKWebView on device cannot load cached HTML - iosiOS WKWebView Cross-source requests are only supported for HTTP - iosWaiting for bot readiness after deployment - azureAll Articles