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 boolean
areEquals(CooperativeEffect effect1, CooperativeEffect effect2)
Use UnambiguousExactCooperativeEffectComparator to know if two CooperativeEffects are equals.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 effectsUnambiguousExactAllosteryComparator
getAllosteryComparator()
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:
getAllosteryComparator
in classCooperativeEffectComparator
- Returns:
- a
AllosteryComparator
object.
-
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:
compare
in interfaceComparator<CooperativeEffect>
- Overrides:
compare
in classCooperativeEffectComparator
- Parameters:
effect1
- aCooperativeEffect
object.effect2
- aCooperativeEffect
object.- Returns:
- a int.
-
areEquals
public static boolean areEquals(CooperativeEffect effect1, CooperativeEffect effect2)
Use UnambiguousExactCooperativeEffectComparator to know if two CooperativeEffects are equals.- Parameters:
effect1
- aCooperativeEffect
object.effect2
- aCooperativeEffect
object.- Returns:
- true if the two CooperativeEffects are equal
-
-