Class CooperativeEffectComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.cooperativity.CooperativeEffectComparator
-
- All Implemented Interfaces:
Comparator<CooperativeEffect>
- Direct Known Subclasses:
UnambiguousCooperativeEffectComparator
,UnambiguousExactCooperativeEffectComparator
public class CooperativeEffectComparator extends Object implements Comparator<CooperativeEffect>
Basic cooperative effect comparator Allostery effects will always come before basic cooperative effects (preassembly) - It will use AllosteryComparator to compare allostery - It will use CooperativeEffectBaseComparator to compare basic cooperative effects- Since:
31/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description CooperativeEffectComparator(AllosteryComparator allosteryComparator)
Constructor for CooperativeEffectComparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(CooperativeEffect cooperativeEffect1, CooperativeEffect cooperativeEffect2)
Allostery effects will always come before basic cooperative effects (preassembly) - It will use AllosteryComparator to compare allostery - It will use CooperativeEffectBaseComparator to compare basic cooperative effectsAllosteryComparator
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
-
-
-
-
Constructor Detail
-
CooperativeEffectComparator
public CooperativeEffectComparator(AllosteryComparator allosteryComparator)
Constructor for CooperativeEffectComparator.
- Parameters:
allosteryComparator
- aAllosteryComparator
object.
-
-
Method Detail
-
getAllosteryComparator
public AllosteryComparator getAllosteryComparator()
Getter for the field
allosteryComparator
.- Returns:
- a
AllosteryComparator
object.
-
compare
public int compare(CooperativeEffect cooperativeEffect1, CooperativeEffect cooperativeEffect2)
Allostery effects will always come before basic cooperative effects (preassembly) - It will use AllosteryComparator to compare allostery - It will use CooperativeEffectBaseComparator to compare basic cooperative effects- Specified by:
compare
in interfaceComparator<CooperativeEffect>
- Parameters:
cooperativeEffect1
- aCooperativeEffect
object.cooperativeEffect2
- aCooperativeEffect
object.- Returns:
- a int.
-
-