@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HostResources resources = (HostResources) o;
        return Double.compare(resources.vcpu, vcpu) == 0 &&
                Double.compare(resources.memoryGb, memoryGb) == 0 &&
                Double.compare(resources.diskGb, diskGb) == 0 &&
                Double.compare(resources.bandwidthGbps, bandwidthGbps) == 0 &&
                diskSpeed.equals(resources.diskSpeed) &&
                storageType.equals(resources.storageType) &&
                clusterType.equals(resources.clusterType) &&
                containers == resources.containers &&
                architecture.equals(resources.architecture);
    }
The advertised node resources of a host, similar to config-provision's NodeResources,
but with additional host-specific resources like the number of containers.

@author freva
flags/src/main/java/com/yahoo/vespa/flags/custom/HostResources.java