class HostInfo {

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        HostInfo hostInfo = (HostInfo) o;

        if (!hostname.equals(hostInfo.hostname)) return false;
        if (services != null ? !services.equals(hostInfo.services) : hostInfo.services != null) return false;

        return true;
    }

    public  HostInfo(String hostName, Collection<ServiceInfo> services);

}