class HostAddressFactory {

    public List<HostAddress> toHostAddressList(Collection<Host> hosts)
    {
        ArrayList<HostAddress> list = new ArrayList<>(hosts.size());
        for (Host host : hosts) {
            list.add(toHostAddress(host));
        }
        return list;
    }

}