Class DefaultBioactiveEntityComparator
- java.lang.Object
-
- psidev.psi.mi.jami.utils.comparator.interactor.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 Summary
Constructors Constructor Description DefaultBioactiveEntityComparator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areEquals(BioactiveEntity bioactiveEntity1, BioactiveEntity bioactiveEntity2)
Use DefaultBioactiveEntityComparator to know if two bioactive entities are equals.
-
-
-
Method Detail
-
areEquals
public static boolean areEquals(BioactiveEntity bioactiveEntity1, BioactiveEntity bioactiveEntity2)
Use DefaultBioactiveEntityComparator to know if two bioactive entities are equals.- Parameters:
bioactiveEntity1
- aBioactiveEntity
object.bioactiveEntity2
- aBioactiveEntity
object.- Returns:
- true if the two bioactive entities are equal
-
-