I am getting result in List of List format which I will process to get a Map. Twist is that inner list will contain 2 different type of objects. Object of type K will be on index 0 and another object of type V will be on index 1.
List<Object> lst = new ArrayList<>();
lst.add(new KeyObject());
lst.add(new ValueObject());
List<List> res = new ArrayList<>();
res.add(lst);
Now I want to construct a Map< K, V> from above res List using java 8 approach. Any suggestions?