private void addMemberToList ( JSConsumerKey key , boolean specificList ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "addMemberToList" , new Object [ ] { key , Boolean . valueOf ( specificList ) } ) ; if ( specificList ) { if ( specificKeyMembers == null ) { // Our first specific member, create a list for them specificKeyMembers = new ArrayList < LocalQPConsumerKey > ( ) ; } specificKeyMembers . add ( ( LocalQPConsumerKey ) key ) ; } else { if ( generalKeyMembers == null ) { // Our first specific member, create a list for them generalKeyMembers = new ArrayList < LocalQPConsumerKey > ( ) ; } generalKeyMembers . add ( ( LocalQPConsumerKey ) key ) ; // As we've modified the list we need to reset the index generalMemberIndex = 0 ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "addMemberToList" ) ; }
Add the member to the correct list