Which is the best way in Java 8 to get a List with elements of Type1
from a List of Lists -> (Records) {List<Type1>, List<Type2>, List<Type3>, ...}
?
Records has several Lists with different Types -> {List<Type1>, List<Type2>, List<Type3>, ...}
List<T> getList(T t) {
// t is instance of Type1
return Records -> List<t>;
}
Thanks so much for your help.