website.automate.jwebrobot.utils.CollectionMapper Maven / Gradle / Ivy
package website.automate.jwebrobot.utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public abstract class CollectionMapper implements Mapper{
public List map(Iterable sources){
if (sources == null) {
return Collections.emptyList();
}
List targets = new ArrayList();
for (S source : sources) {
targets.add(map(source));
}
return targets;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy