{
DynamicListTest test;
Function<List<Integer>, DynamicList<Integer>> numsGenerator;
Function<List<City>, DynamicList<City>> citiesGenerator;
Function<List<String>, DynamicList<String>> stringsGenerator;
numsGenerator = (javaList) -> {
DynamicList<T> newList = LinkedListFactory.newLinkedList();
for (T eachElem: javaList)
newList.addLast(eachElem);
return newList;
};
citiesGenerator = (javaList) -> {
DynamicList<T> newList = LinkedListFactory.newLinkedList();
for (T eachElem: javaList)
newList.addLast(eachElem);
return newList;
};
stringsGenerator = (javaList) -> {
DynamicList<T> newList = LinkedListFactory.newLinkedList();
for (T eachElem: javaList)
newList.addLast(eachElem);
return newList;
};
test = new DynamicListTest(numsGenerator, citiesGenerator, stringsGenerator);
}