src/net/java/sip/communicator/service/protocol/media/AbstractOperationSetTelephonyConferencing.java
/**
     * @param a A document with state <tt>full</tt> which to compare to
     * <tt>b</tt>
     * @param b A document with state <tt>full</tt> which to compare to
     * <tt>a</tt>
     * @return <tt>false</tt> if the two documents are found to be different,
     * <tt>true</tt> otherwise (that is, it can return true for non-identical
     * documents).
     */
@param a A document with state full which to compare to
b
@param b A document with state full which to compare to
a
@return false if the two documents are found to be different,
true otherwise (that is, it can return true for non-identical
documents).
@param a A document with state full which to compare to b @param b A document with state full which to compare to a @return false if the two documents are found to be different true otherwise ( that is it can return true for non - identical documents ) .
private boolean conferenceInfoDocumentsMatch(
            ConferenceInfoDocument a,
            ConferenceInfoDocument b)
    {
        if (a.getState() != ConferenceInfoDocument.State.FULL)
            throw new IllegalArgumentException("The 'a' document needs to"
                    + "have state=full");
        if (b.getState() != ConferenceInfoDocument.State.FULL)
            throw new IllegalArgumentException("The 'b' document needs to"
                    + "have state=full");
        if (!stringsMatch(a.getEntity(), b.getEntity()))
            return false;
        else if (a.getUserCount() != b.getUserCount())
            return false;
        else if (a.getUsers().size() != b.getUsers().size())
            return false;
        for(ConferenceInfoDocument.User aUser : a.getUsers())
        {
            if (!usersMatch(aUser, b.getUser(aUser.getEntity())))
                return false;
        }
        return true;
    }
private boolean conferenceInfoDocumentsMatch ( ConferenceInfoDocument a , ConferenceInfoDocument b ) { if ( a . getState ( ) != ConferenceInfoDocument . State . FULL ) throw new IllegalArgumentException ( "The 'a' document needs to" + "have state=full" ) ; if ( b . getState ( ) != ConferenceInfoDocument . State . FULL ) throw new IllegalArgumentException ( "The 'b' document needs to" + "have state=full" ) ; if ( ! stringsMatch ( a . getEntity ( ) , b . getEntity ( ) ) ) return false ; else if ( a . getUserCount ( ) != b . getUserCount ( ) ) return false ; else if ( a . getUsers ( ) . size ( ) != b . getUsers ( ) . size ( ) ) return false ; for ( ConferenceInfoDocument . User aUser : a . getUsers ( ) ) { if ( ! usersMatch ( aUser , b . getUser ( aUser . getEntity ( ) ) ) ) return false ; } return true ; }
@param a A document with state <tt>full</tt> which to compare to
 <tt>b</tt>
 @param b A document with state <tt>full</tt> which to compare to
 <tt>a</tt>
 @return <tt>false</tt> if the two documents are found to be different,
 <tt>true</tt> otherwise (that is, it can return true for non-identical
 documents).
@param a A document with state <tt > full< / tt > which to compare to <tt > b< / tt > @param b A document with state <tt > full< / tt > which to compare to <tt > a< / tt > @return <tt > false< / tt > if the two documents are found to be different <tt > true< / tt > otherwise ( that is it can return true for non - identical documents ) .