@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClusterMembership that = (ClusterMembership) o;
        return index == that.index &&
               retired == that.retired &&
               cluster.equals(that.cluster) &&
               stringValue.equals(that.stringValue);
    }
Returns all the information in this as a string which can be used to construct the same ClusterMembership
instance using {@link #from}. This string is currently stored in ZooKeeper on running instances.
config-provisioning/src/main/java/com/yahoo/config/provision/ClusterMembership.java