aeron-cluster/src/main/java/io/aeron/cluster/ClusterMember.java
public static int highMemberId(final ClusterMember[] clusterMembers)
    {
        int highId = Aeron.NULL_VALUE;

        for (final ClusterMember member : clusterMembers)
        {
            highId = Math.max(highId, member.id());
        }

        return highId;
    }
public static int highMemberId(final ClusterMember[] clusterMembers)
    {
        int highId = Aeron.NULL_VALUE;

        for (final ClusterMember member : clusterMembers)
        {
            highId = Math.max(highId, member.id());
        }

        return highId;
    }
public static int highMemberId ( final ClusterMember [ ] clusterMembers ) { int highId = Aeron . NULL_VALUE ; for ( final ClusterMember member : clusterMembers ) { highId = Math . max ( highId , member . id ( ) ) ; } return highId ; }
Find the highest member id in an array of members.

@param clusterMembers to search for the highest id.
@return the highest id otherwise {@link Aeron#NULL_VALUE} if empty.
Find the highest member id in an array of members .