Class DefaultInteractorBaseComparator


  • public class DefaultInteractorBaseComparator
    extends Object
    Default interactor comparator. If both interactors have identifier(s), it will look for at least one identical identifier using DefaultIdentifierComparator. If at least one interactor does not have any identifiers, it will look at the short names (case sensitive). If the shortnames do not match, it will look at the fullNames (case sensitive) if both fullnames are set and if the fullnames are not set or do not match, it will look for at least one common alias using DefaultAliasComparator. This comparator will ignore all the other properties of an interactor.
    Since:
    21/12/12
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultInteractorBaseComparator

        public DefaultInteractorBaseComparator()
    • Method Detail

      • areEquals

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