public Member findMember ( String memberName ) { if ( memberName == null ) return null ; if ( memberHash == null ) { // delay making the hash table until needed int initial_capacity = ( int ) ( members . size ( ) / .75 ) + 1 ; memberHash = new HashMap <> ( initial_capacity ) ; for ( Member m : members ) memberHash . put ( m . getName ( ) , m ) ; } return memberHash . get ( memberName ) ; }
Find the member by its name .