Class UnambiguousExactParticipantEvidenceInteractorComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.participant.ParticipantInteractorComparator<ExperimentalEntity>
-
- psidev.psi.mi.jami.utils.comparator.participant.UnambiguousExactParticipantEvidenceInteractorComparator
-
- All Implemented Interfaces:
Comparator<ExperimentalEntity>
public class UnambiguousExactParticipantEvidenceInteractorComparator extends ParticipantInteractorComparator<ExperimentalEntity>
Unambiguous exact experimental participant comparator based on the interactor only. It will compare the basic properties of an interactor using UnambiguousExactInteractorComparator. This comparator will ignore all the other properties of an experimental participant.- Since:
30/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactParticipantEvidenceInteractorComparator()
Creates a new UnambiguousExactParticipantEvidenceInteractorComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ExperimentalEntity experimentalParticipant1, ExperimentalEntity component2)
It will compare the basic properties of an interactor using UnambiguousExactInteractorComparator.int
compare(ExperimentalEntity experimentalParticipant1, ExperimentalEntity experimentalParticipant2)
It will compare the basic properties of an interactor using UnambiguousInteractorComparator.UnambiguousExactInteractorComparator
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
-
-
-
-
Constructor Detail
-
UnambiguousExactParticipantEvidenceInteractorComparator
public UnambiguousExactParticipantEvidenceInteractorComparator()
Creates a new UnambiguousExactParticipantEvidenceInteractorComparator. It will use a UnambiguousExactInteractorComparator to compare the basic properties of a interactor.
-
-
Method Detail
-
getInteractorComparator
public UnambiguousExactInteractorComparator getInteractorComparator()
Description copied from class:ParticipantInteractorComparator
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 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)
It will compare the basic properties of an interactor using UnambiguousExactInteractorComparator. This comparator will ignore all the other properties of an experimental participant.- Parameters:
experimentalParticipant1
- aExperimentalEntity
object.component2
- aExperimentalEntity
object.- Returns:
- true if the two experimental participants are equal
-
-