Class DefaultInteractorComparator


  • public class DefaultInteractorComparator
    extends Object
    Default generic Interactor Comparator. Bioactive entities come first, then proteins, then genes, then nucleic acids, then complexes and finally InteractorPool. If two interactors are from the same Interactor interface, it will use a more specific Comparator : - Uses DefaultBioactiveEntityComparator for comparing BioactiveEntity objects. - Uses DefaultProteinComparator for comparing Protein objects. - Uses DefaultGeneComparator for comparing Gene objects. - Uses DefaultNucleicAcidComparator for comparing NucleicAcids objects. - Uses DefaultPolymerComparator for comparing Polymer objects - Uses DefaultComplexComparator for comparing complexes - Uses DefaultInteractorPoolComparator for comparing interactor candidates - use DefaultInteractorBaseComparator for comparing basic interactors that are not one of the above.
    Since:
    17/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultInteractorComparator

        public DefaultInteractorComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(Interactor interactor1,
                                        Interactor interactor2)
        Use DefaultInteractorComparator to know if two interactors are equals.
        Parameters:
        interactor1 - a Interactor object.
        interactor2 - a Interactor object.
        Returns:
        true if the two interactors are equal