aeron-cluster/src/main/java/io/aeron/cluster/ClusterMember.java
public static ClusterMember findMember(final ClusterMember[] clusterMembers, final int memberId)
    {
        for (final ClusterMember member : clusterMembers)
        {
            if (member.id() == memberId)
            {
                return member;
            }
        }

        return null;
    }
public static ClusterMember findMember(final ClusterMember[] clusterMembers, final int memberId)
    {
        for (final ClusterMember member : clusterMembers)
        {
            if (member.id() == memberId)
            {
                return member;
            }
        }

        return null;
    }
Find a {@link ClusterMember} with a given id.

@param clusterMembers to search.
@param memberId       to search for.
@return the {@link ClusterMember} if found otherwise null.