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 booleanareEquals(CooperativeEffect effect1, CooperativeEffect effect2)Use UnambiguousCooperativeEffectComparator 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 effectsUnambiguousAllosteryComparatorgetAllosteryComparator()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:
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 UnambiguousCooperativeEffectComparator to know if two CooperativeEffects are equals.- Parameters:
effect1- aCooperativeEffectobject.effect2- aCooperativeEffectobject.- Returns:
- true if the two CooperativeEffects are equal
-
-