Class UnambiguousExactComplexComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interactor.ComplexComparator
-
- psidev.psi.mi.jami.utils.comparator.interactor.UnambiguousExactComplexComparator
-
- All Implemented Interfaces:
Comparator<Complex>
public class UnambiguousExactComplexComparator extends ComplexComparator
Unambiguous exact Complex comparatorIt will first look at the default properties of an interactor using UnambiguousExactInteractorBaseComparator. It will then compare interaction types using UnambiguousExactCvTermComparator. If the basic interactor properties are the same, It will first compare the collection of components using UnambiguousExactModelledParticipantComparator.
- Since:
17/01/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactComplexComparator()UnambiguousExactComplexComparator(UnambiguousExactModelledParticipantComparator comparator)Constructor for UnambiguousExactComplexComparator.UnambiguousExactComplexComparator(UnambiguousExactModelledParticipantInteractorComparator comparator)Constructor for UnambiguousExactComplexComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanareEquals(Complex complex1, Complex complex2)Use UnambiguousExactComplexComparator 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.UnambiguousExactInteractorBaseComparatorgetInteractorBaseComparator()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
-
UnambiguousExactComplexComparator
public UnambiguousExactComplexComparator()
Creates a new UnambiguousExactComplexComparator. It will use a UnambiguousExactInteractorBaseComparator, UnambiguousExactModelledParticipantComparator to compares components.
-
UnambiguousExactComplexComparator
public UnambiguousExactComplexComparator(UnambiguousExactModelledParticipantComparator comparator)
Constructor for UnambiguousExactComplexComparator.
- Parameters:
comparator- aUnambiguousExactModelledParticipantComparatorobject.
-
UnambiguousExactComplexComparator
public UnambiguousExactComplexComparator(UnambiguousExactModelledParticipantInteractorComparator comparator)
Constructor for UnambiguousExactComplexComparator.
- Parameters:
comparator- aUnambiguousExactModelledParticipantInteractorComparatorobject.
-
-
Method Detail
-
areEquals
public static boolean areEquals(Complex complex1, Complex complex2)
Use UnambiguousExactComplexComparator to know if two complexes are equals.
-
compare
public int compare(Complex complex1, Complex complex2)
Description copied from class:ComplexComparatorIt 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.- Specified by:
comparein interfaceComparator<Complex>- Overrides:
comparein classComplexComparator- Parameters:
complex1- aComplexobject.complex2- aComplexobject.- Returns:
- a int.
-
getInteractorBaseComparator
public UnambiguousExactInteractorBaseComparator 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.
-
-