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 boolean
areEquals(Complex complex1, Complex complex2)
Use UnambiguousExactComplexComparator to know if two complexes are equals.int
compare(Complex complex1, Complex complex2)
It will first look at the default properties of an interactor using AbstractInteractorBaseComparator.UnambiguousCvTermComparator
getCvTermComparator()
Getter for the fieldcvTermComparator
.UnambiguousExactInteractorBaseComparator
getInteractorBaseComparator()
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
- aUnambiguousExactModelledParticipantComparator
object.
-
UnambiguousExactComplexComparator
public UnambiguousExactComplexComparator(UnambiguousExactModelledParticipantInteractorComparator comparator)
Constructor for UnambiguousExactComplexComparator.
- Parameters:
comparator
- aUnambiguousExactModelledParticipantInteractorComparator
object.
-
-
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:ComplexComparator
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.- Specified by:
compare
in interfaceComparator<Complex>
- Overrides:
compare
in classComplexComparator
- Parameters:
complex1
- aComplex
object.complex2
- aComplex
object.- Returns:
- a int.
-
getInteractorBaseComparator
public UnambiguousExactInteractorBaseComparator getInteractorBaseComparator()
Getter for the field
interactorBaseComparator
.- Overrides:
getInteractorBaseComparator
in classComplexComparator
- Returns:
- a
Comparator
object.
-
getCvTermComparator
public UnambiguousCvTermComparator getCvTermComparator()
Getter for the field
cvTermComparator
.- Overrides:
getCvTermComparator
in classComplexComparator
- Returns:
- a
Comparator
object.
-
-