aeron-cluster/src/main/java/io/aeron/cluster/ClusterMember.java
public static void validateMemberEndpoints(final ClusterMember member, final String memberEndpoints)
    {
        final ClusterMember endpointMember = ClusterMember.parseEndpoints(Aeron.NULL_VALUE, memberEndpoints);

        if (!areSameEndpoints(member, endpointMember))
        {
            throw new ClusterException(
                "clusterMembers and memberEndpoints differ: " + member.endpointsDetail() + " != " + memberEndpoints);
        }
    }
public static void validateMemberEndpoints(final ClusterMember member, final String memberEndpoints)
    {
        final ClusterMember endpointMember = ClusterMember.parseEndpoints(Aeron.NULL_VALUE, memberEndpoints);

        if (!areSameEndpoints(member, endpointMember))
        {
            throw new ClusterException(
                "clusterMembers and memberEndpoints differ: " + member.endpointsDetail() + " != " + memberEndpoints);
        }
    }
Check the member with the memberEndpoints

@param member          to check memberEndpoints against
@param memberEndpoints to check member against
@see ConsensusModule.Context#memberEndpoints()
@see ConsensusModule.Context#clusterMembers()