src/net/java/sip/communicator/impl/contactlist/MetaContactImpl.java
/**
     * Adds the capabilities of the given contact.
     *
     * @param contact the <tt>Contact</tt>, which capabilities we add
     * @param opSets the map of operation sets supported by the contact
     */
Adds the capabilities of the given contact.
@param contact the Contact, which capabilities we add
@param opSets the map of operation sets supported by the contact
Adds the capabilities of the given contact . @param contact the Contact which capabilities we add @param opSets the map of operation sets supported by the contact
private void addCapabilities(   Contact contact,
                                    Map<String, ? extends OperationSet> opSets)
    {
        synchronized (capabilities)
        {
            for (String newCap : opSets.keySet())
            {
                List<Contact> capContacts = capabilities.get(newCap);
                if (capContacts == null)
                {
                    capContacts = new LinkedList<>();
                    capabilities.put(newCap, capContacts);
                }
                capContacts.add(contact);
            }
        }
    }
private void addCapabilities ( Contact contact , Map < String , ? extends OperationSet > opSets ) { synchronized ( capabilities ) { for ( String newCap : opSets . keySet ( ) ) { List < Contact > capContacts = capabilities . get ( newCap ) ; if ( capContacts == null ) { capContacts = new LinkedList < > ( ) ; capabilities . put ( newCap , capContacts ) ; } capContacts . add ( contact ) ; } } }
Adds the capabilities of the given contact.
Adds the capabilities of the given contact .