Class UnambiguousExactCooperativeEffectComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.CooperativeEffectComparator
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.UnambiguousExactCooperativeEffectComparator
-
- All Implemented Interfaces:
Comparator<CooperativeEffect>
public class UnambiguousExactCooperativeEffectComparator extends CooperativeEffectComparator
Unambiguous exact cooperative effect comparator Allostery effects will always come before basic cooperative effects (preassembly) - It will use UnambiguousExactAllosteryComparator to compare allostery - It will use UnambiguousExactCooperativeEffectBaseComparator to compare basic cooperative effects- Since:
31/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousExactCooperativeEffectComparator()Constructor for UnambiguousExactCooperativeEffectComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanareEquals(CooperativeEffect effect1, CooperativeEffect effect2)Use UnambiguousExactCooperativeEffectComparator to know if two CooperativeEffects are equals.intcompare(CooperativeEffect effect1, CooperativeEffect effect2)Allostery effects will always come before basic cooperative effects (preassembly) - It will use DefaultExactAllosteryComparator to compare allostery - It will use DefaultExactCooperativeEffectBaseComparator to compare basic cooperative effectsUnambiguousExactAllosteryComparatorgetAllosteryComparator()Getter for the fieldallosteryComparator.-
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
-
-
-
-
Method Detail
-
getAllosteryComparator
public UnambiguousExactAllosteryComparator getAllosteryComparator()
Getter for the field
allosteryComparator.- Overrides:
getAllosteryComparatorin classCooperativeEffectComparator- Returns:
- a
AllosteryComparatorobject.
-
compare
public int compare(CooperativeEffect effect1, CooperativeEffect effect2)
Allostery effects will always come before basic cooperative effects (preassembly) - It will use DefaultExactAllosteryComparator to compare allostery - It will use DefaultExactCooperativeEffectBaseComparator to compare basic cooperative effects- Specified by:
comparein interfaceComparator<CooperativeEffect>- Overrides:
comparein classCooperativeEffectComparator- Parameters:
effect1- aCooperativeEffectobject.effect2- aCooperativeEffectobject.- Returns:
- a int.
-
areEquals
public static boolean areEquals(CooperativeEffect effect1, CooperativeEffect effect2)
Use UnambiguousExactCooperativeEffectComparator to know if two CooperativeEffects are equals.- Parameters:
effect1- aCooperativeEffectobject.effect2- aCooperativeEffectobject.- Returns:
- true if the two CooperativeEffects are equal
-
-