Class UnambiguousParticipantEvidenceInteractorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantInteractorComparator<ExperimentalEntity>
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousParticipantEvidenceInteractorComparator
-
- All Implemented Interfaces:
Comparator<ExperimentalEntity>
public class UnambiguousParticipantEvidenceInteractorComparator extends ParticipantInteractorComparator<ExperimentalEntity>
Unambiguous experimental participant comparator based on the interactor only. It will compare the basic properties of an interactor using UnambiguousInteractorComparator. This comparator will ignore all the other properties of an experimental participant.- Since:
17/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousParticipantEvidenceInteractorComparator()
Creates a new UnambiguousParticipantEvidenceInteractorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ExperimentalEntity experimentalParticipant1, ExperimentalEntity component2)
Use UnambiguousParticipantEvidenceInteractorComparator to know if two experimental participants are equals.int
compare(ExperimentalEntity experimentalParticipant1, ExperimentalEntity experimentalParticipant2)
It will compare the interactors using InteractorComparator.UnambiguousInteractorComparator
getInteractorComparator()
Getter for the fieldinteractorComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.participant.ParticipantInteractorComparator
setInteractorComparator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
getInteractorComparator
public UnambiguousInteractorComparator getInteractorComparator()
Getter for the field
interactorComparator
.- Overrides:
getInteractorComparator
in classParticipantInteractorComparator<ExperimentalEntity>
- Returns:
- a
InteractorComparator
object.
-
compare
public int compare(ExperimentalEntity experimentalParticipant1, ExperimentalEntity experimentalParticipant2)
It will compare the interactors using InteractorComparator. This comparator will ignore all the other properties of a participant. It will compare the basic properties of an interactor using UnambiguousInteractorComparator. This comparator will ignore all the other properties of an experimental participant.- Specified by:
compare
in interfaceComparator<ExperimentalEntity>
- Overrides:
compare
in classParticipantInteractorComparator<ExperimentalEntity>
- Parameters:
experimentalParticipant1
- a T object.experimentalParticipant2
- a T object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ExperimentalEntity experimentalParticipant1, ExperimentalEntity component2)
Use UnambiguousParticipantEvidenceInteractorComparator to know if two experimental participants are equals.- Parameters:
experimentalParticipant1
- aExperimentalEntity
object.component2
- aExperimentalEntity
object.- Returns:
- true if the two experimental participants are equal
-
-