private boolean matches ( Collection < Address > left , Collection < Address > right ) { if ( left . size ( ) != right . size ( ) ) return false ; for ( Address address : left ) { if ( ! right . contains ( address ) ) { return false ; } } return true ; }
Returns a boolean value indicating whether the servers in the first list match the servers in the second list .