Class DefaultBioactiveEntityComparator


  • public class DefaultBioactiveEntityComparator
    extends Object
    Default bioactive entity comparator. It will first use DefaultInteractorBaseComparator to compare the basic interactor properties. If the basic interactor properties are the same, It will look first for CHEBI identifier if both are set. If the CHEBI identifiers are not both set, it will look at the standard inchi key. If at least one standard inchi key is not set or both inchi key are identical, it will look at the smile. If at least one smile is not set or both smiles are identical, it will look at the standard Inchi.
    Since:
    14/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • DefaultBioactiveEntityComparator

        public DefaultBioactiveEntityComparator()
    • Method Detail

      • areEquals

        public static boolean areEquals​(BioactiveEntity bioactiveEntity1,
                                        BioactiveEntity bioactiveEntity2)
        Use DefaultBioactiveEntityComparator to know if two bioactive entities are equals.
        Parameters:
        bioactiveEntity1 - a BioactiveEntity object.
        bioactiveEntity2 - a BioactiveEntity object.
        Returns:
        true if the two bioactive entities are equal