I need to convert Java HashMap to TreeMap instance (including map contents)
HashMap<String, Object> src = ...; TreeMap<String, Object> dest = src.entrySet().stream() .filter( ... ) .collect(Collectors.toMap( ???, ???, ???, TreeMap::new));
What should I put in place of ??? to make this code compile?
java lambda java-8 java-stream
Antonio Sep 07 '14 at 16:49 2014-09-07 16:49
source share