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 boolean
areEquals(Complex complex1, Complex complex2)
Use UnambiguousComplexComparator 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
.UnambiguousInteractorBaseComparator
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
-
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
- aUnambiguousModelledParticipantComparator
object.
-
UnambiguousComplexComparator
public UnambiguousComplexComparator(UnambiguousModelledParticipantInteractorComparator comparator)
Constructor for UnambiguousComplexComparator.
- Parameters:
comparator
- aUnambiguousModelledParticipantInteractorComparator
object.
-
-
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:
compare
in interfaceComparator<Complex>
- Overrides:
compare
in classComplexComparator
- Parameters:
complex1
- aComplex
object.complex2
- aComplex
object.- Returns:
- a int.
-
getInteractorBaseComparator
public UnambiguousInteractorBaseComparator 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.
-
-