All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.qatools.gridrouter.config.WithHosts Maven / Gradle / Ivy

There is a newer version: 1.31
Show newest version
package ru.qatools.gridrouter.config;

import java.util.List;

import static java.util.stream.Collectors.toList;

/**
 * @author Dmitry Baev [email protected]
 * @author Innokenty Shuvalov [email protected]
 */
public interface WithHosts {

    default List getHosts() {
        return getBrowsers().stream()
                .flatMap(b -> b.getVersions().stream())
                .flatMap(v -> v.getRegions().stream())
                .flatMap(r -> r.getHosts().stream())
                .collect(toList());
    }

    List getBrowsers();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy