Class UnambiguousCooperativeEffectComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.CooperativeEffectComparator
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.UnambiguousCooperativeEffectComparator
-
- All Implemented Interfaces:
Comparator<CooperativeEffect>
public class UnambiguousCooperativeEffectComparator extends CooperativeEffectComparator
Unambiguous cooperative effect comparator Allostery effects will always come before basic cooperative effects (preassembly) - It will use UnambiguousAllosteryComparator to compare allostery - It will use UnambiguousCooperativeEffectBaseComparator to compare basic cooperative effects- Since:
31/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description UnambiguousCooperativeEffectComparator()
Constructor for UnambiguousCooperativeEffectComparator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(CooperativeEffect effect1, CooperativeEffect effect2)
Use UnambiguousCooperativeEffectComparator 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 effectsUnambiguousAllosteryComparator
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 UnambiguousAllosteryComparator 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 UnambiguousCooperativeEffectComparator to know if two CooperativeEffects are equals.- Parameters:
effect1
- aCooperativeEffect
object.effect2
- aCooperativeEffect
object.- Returns:
- true if the two CooperativeEffects are equal
-
-