Class UnambiguousComplexComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interactor.ComplexComparator
-
- psidev.psi.mi.jami.utils.comparator.interactor.UnambiguousComplexComparator
-
- All Implemented Interfaces:
Comparator<Complex>
public class UnambiguousComplexComparator extends ComplexComparator
Unambiguous Complex comparatorIt will first look at the default properties of an interactor using UnambiguousInteractorBaseComparator. It will then compare interaction types using UnambiguousCvTermComparator. If the basic interactor properties are the same, It will first compare the collection of components using UnambiguousModelledParticipantComparator.
- Since:
17/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousComplexComparator()UnambiguousComplexComparator(UnambiguousModelledParticipantComparator comparator)Constructor for UnambiguousComplexComparator.UnambiguousComplexComparator(UnambiguousModelledParticipantInteractorComparator comparator)Constructor for UnambiguousComplexComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanareEquals(Complex complex1, Complex complex2)Use UnambiguousComplexComparator to know if two complexes are equals.intcompare(Complex complex1, Complex complex2)It will first look at the default properties of an interactor using AbstractInteractorBaseComparator.UnambiguousCvTermComparatorgetCvTermComparator()Getter for the fieldcvTermComparator.UnambiguousInteractorBaseComparatorgetInteractorBaseComparator()Getter for the fieldinteractorBaseComparator.-
Methods inherited from class psidev.psi.mi.jami.utils.comparator.interactor.ComplexComparator
getComponentCollectionComparator
-
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
-
UnambiguousComplexComparator
public UnambiguousComplexComparator()
Creates a new UnambiguousComplexComparator. It will use a UnambiguousInteractorBaseComparator, UnambiguousModelledParticipantComparator to compares components.
-
UnambiguousComplexComparator
public UnambiguousComplexComparator(UnambiguousModelledParticipantComparator comparator)
Constructor for UnambiguousComplexComparator.
- Parameters:
comparator- aUnambiguousModelledParticipantComparatorobject.
-
UnambiguousComplexComparator
public UnambiguousComplexComparator(UnambiguousModelledParticipantInteractorComparator comparator)
Constructor for UnambiguousComplexComparator.
- Parameters:
comparator- aUnambiguousModelledParticipantInteractorComparatorobject.
-
-
Method Detail
-
areEquals
public static boolean areEquals(Complex complex1, Complex complex2)
Use UnambiguousComplexComparator to know if two complexes are equals.
-
compare
public int compare(Complex complex1, Complex complex2)
It will first look at the default properties of an interactor using AbstractInteractorBaseComparator. It will then compare the interaction types using AbstractCvtermComparator If the basic interactor properties are the same, It will first compare the collection of components using ComponentComparator. It will first look at the default properties of an interactor using UnambiguousInteractorBaseComparator. It will then compare interaction types using UnambiguousCvTermComparator. If the basic interactor properties are the same, It will first compare the collection of components using UnambiguousModelledParticipantComparator.- Specified by:
comparein interfaceComparator<Complex>- Overrides:
comparein classComplexComparator- Parameters:
complex1- aComplexobject.complex2- aComplexobject.- Returns:
- a int.
-
getInteractorBaseComparator
public UnambiguousInteractorBaseComparator getInteractorBaseComparator()
Getter for the field
interactorBaseComparator.- Overrides:
getInteractorBaseComparatorin classComplexComparator- Returns:
- a
Comparatorobject.
-
getCvTermComparator
public UnambiguousCvTermComparator getCvTermComparator()
Getter for the field
cvTermComparator.- Overrides:
getCvTermComparatorin classComplexComparator- Returns:
- a
Comparatorobject.
-
-