I have a
java.util.Map<String, String>
and is there anyway in guava to convert that to a
List<String>
with only the values from the map?
Why not just do
List<String> list = new ArrayList<>(map.values());
You can write:
List<String> list = ImmutableList.copyOf(map.values());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With