Class UnambiguousExactCuratedModelledInteractionComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interaction.ModelledInteractionComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.CuratedModelledInteractionComparator
-
- psidev.psi.mi.jami.utils.comparator.interaction.UnambiguousExactCuratedModelledInteractionComparator
-
- All Implemented Interfaces:
Comparator<ModelledInteraction>
public class UnambiguousExactCuratedModelledInteractionComparator extends CuratedModelledInteractionComparator
Unambiguous exact curated ModelledInteraction comparator. It will use a UnambiguousCuratedInteractionBase to compare basic interaction properties. Then it will compare the modelledParticipants using UnambiguousExactModelledParticipantComparator. Finally, it will compare the source of the modelledInteraction using UnambiguousCvTermComparator- Since:
21/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactCuratedModelledInteractionComparator()
Creates a new UnambiguousExactCuratedModelledInteractionComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(ModelledInteraction interaction1, ModelledInteraction interaction2)
Use UnambiguousExactCuratedModelledInteractionComparator to know if two modelled interactions are equals.int
compare(ModelledInteraction interaction1, ModelledInteraction interaction2)
It will use a UnambiguousCuratedInteractionBase to compare basic interaction properties.UnambiguousCuratedInteractionBaseComparator
getInteractionBaseComparator()
Getter for the fieldinteractionBaseComparator
.UnambiguousCvTermComparator
getSourceComparator()
Getter for the fieldsourceComparator
.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interaction.ModelledInteractionComparator
getParticipantCollectionComparator
-
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
-
UnambiguousExactCuratedModelledInteractionComparator
public UnambiguousExactCuratedModelledInteractionComparator()
Creates a new UnambiguousExactCuratedModelledInteractionComparator. It will use a UnambiguousExactCuratedInteractionBaseComparator to compare basic interaction properties
-
-
Method Detail
-
getInteractionBaseComparator
public UnambiguousCuratedInteractionBaseComparator getInteractionBaseComparator()
Getter for the field
interactionBaseComparator
.- Overrides:
getInteractionBaseComparator
in classModelledInteractionComparator
- Returns:
- a
Comparator
object.
-
getSourceComparator
public UnambiguousCvTermComparator getSourceComparator()
Description copied from class:CuratedModelledInteractionComparator
Getter for the field
sourceComparator
.- Overrides:
getSourceComparator
in classCuratedModelledInteractionComparator
- Returns:
- a
Comparator
object.
-
compare
public int compare(ModelledInteraction interaction1, ModelledInteraction interaction2)
It will use a UnambiguousCuratedInteractionBase to compare basic interaction properties. Then it will compare the modelledParticipants using UnambiguousExactModelledParticipantComparator. Finally, it will compare the source of the modelledInteraction using UnambiguousCvTermComparator- Specified by:
compare
in interfaceComparator<ModelledInteraction>
- Overrides:
compare
in classCuratedModelledInteractionComparator
- Parameters:
interaction1
- aModelledInteraction
object.interaction2
- aModelledInteraction
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(ModelledInteraction interaction1, ModelledInteraction interaction2)
Use UnambiguousExactCuratedModelledInteractionComparator to know if two modelled interactions are equals.- Parameters:
interaction1
- aModelledInteraction
object.interaction2
- aModelledInteraction
object.- Returns:
- true if the two modelled interactions are equal
-
-