src/net/java/sip/communicator/service/protocol/media/AbstractOperationSetTelephonyConferencing.java
/**
     * Checks whether two <tt>ConferenceInfoDocument.Endpoint</tt> instances
     * match according to the needs of our implementation. Can return
     * <tt>true</tt> for endpoints which are not identical.
     *
     * @param a A <tt>ConferenceInfoDocument.Endpoint</tt> to compare
     * @param b A <tt>ConferenceInfoDocument.Endpoint</tt> to compare
     * @return <tt>false</tt> if <tt>a</tt> and <tt>b</tt> are found to be
     * different in a way that is significant for our needs, <tt>true</tt>
     * otherwise.
     */
Checks whether two ConferenceInfoDocument.Endpoint instances
match according to the needs of our implementation. Can return
true for endpoints which are not identical.

@param a A ConferenceInfoDocument.Endpoint to compare
@param b A ConferenceInfoDocument.Endpoint to compare
@return false if a and b are found to be
different in a way that is significant for our needs, true
otherwise.
Checks whether two ConferenceInfoDocument . Endpoint instances match according to the needs of our implementation . Can return true for endpoints which are not identical . @param a A ConferenceInfoDocument . Endpoint to compare @param b A ConferenceInfoDocument . Endpoint to compare @return false if a and b are found to be different in a way that is significant for our needs true otherwise .
private boolean endpointsMatch(
            ConferenceInfoDocument.Endpoint a,
            ConferenceInfoDocument.Endpoint b)
    {
        if (a == null && b == null)
            return true;
        else if (a == null || b == null)
            return false;
        else if (!stringsMatch(a.getEntity(), b.getEntity()))
            return false;
        else if (a.getStatus() != b.getStatus())
            return false;
        else if (a.getMedias().size() != b.getMedias().size())
            return false;
        for (ConferenceInfoDocument.Media aMedia : a.getMedias())
        {
            if (!mediasMatch(aMedia, b.getMedia(aMedia.getId())))
                return false;
        }
        return true;
    }
private boolean endpointsMatch ( ConferenceInfoDocument . Endpoint a , ConferenceInfoDocument . Endpoint b ) { if ( a == null && b == null ) return true ; else if ( a == null || b == null ) return false ; else if ( ! stringsMatch ( a . getEntity ( ) , b . getEntity ( ) ) ) return false ; else if ( a . getStatus ( ) != b . getStatus ( ) ) return false ; else if ( a . getMedias ( ) . size ( ) != b . getMedias ( ) . size ( ) ) return false ; for ( ConferenceInfoDocument . Media aMedia : a . getMedias ( ) ) { if ( ! mediasMatch ( aMedia , b . getMedia ( aMedia . getId ( ) ) ) ) return false ; } return true ; }
Checks whether two <tt>ConferenceInfoDocument.Endpoint</tt> instances
 match according to the needs of our implementation.
Checks whether two <tt > ConferenceInfoDocument . Endpoint< / tt > instances match according to the needs of our implementation .