Skip to content
Snippets Groups Projects
Commit 3ce01ea8 authored by langella's avatar langella
Browse files

log collision event

git-svn-id: https://subversion.renater.fr/xtandempipeline/trunk@288 b8ef2a07-7df7-436f-90b9-41648038564b
parent b138dda6
No related branches found
No related tags found
No related merge requests found
......@@ -22,11 +22,14 @@ public class HashPeptide extends HashKey4Groups {
@Override
public boolean equals(Object toCompare) {
if (this.hashCode() == toCompare.hashCode()) {
//very good idea Benoit !
// very good idea Benoit !
HashPeptide toComparePeptide = (HashPeptide) toCompare;
if ((this.hashSampleScan.equals(toComparePeptide.hashSampleScan))
&& (this.sequence.equals(toComparePeptide.sequence))) {
return true;
} else {
logger.debug("HashPeptide COLLISION on " + this.toString()
+ " compared to " + toComparePeptide.toString());
}
}
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment