So I have the following HashMap:
HashMap<String, List<someDataType>> map
;
I want to create a new HashMap that is only composed of the k/v pairs in map
that have a value (the list) whose length is less than a certain "x". The only way I know how to do this is to iterate through the HashMap and put k/v pairs into a new HashMap. Is there a more concise way to achieve what I'm looking for? Thanks.