public boolean isIdenticalTo ( SubunitCluster other ) { String thisSequence = this . subunits . get ( this . representative ) . getProteinSequenceString ( ) ; String otherSequence = other . subunits . get ( other . representative ) . getProteinSequenceString ( ) ; return thisSequence . equals ( otherSequence ) ; }
Tells whether the other SubunitCluster contains exactly the same Subunit . This is checked by String equality of their residue one - letter sequences .