Class UnambiguousComplexComparator

  • All Implemented Interfaces:
    Comparator<Complex>

    public class UnambiguousComplexComparator
    extends ComplexComparator
    Unambiguous Complex comparator

    It will first look at the default properties of an interactor using UnambiguousInteractorBaseComparator. It will then compare interaction types using UnambiguousCvTermComparator. If the basic interactor properties are the same, It will first compare the collection of components using UnambiguousModelledParticipantComparator.

    Since:
    17/01/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Method Detail

      • areEquals

        public static boolean areEquals​(Complex complex1,
                                        Complex complex2)
        Use UnambiguousComplexComparator to know if two complexes are equals.
        Parameters:
        complex1 - a Complex object.
        complex2 - a Complex object.
        Returns:
        true if the two complexes are equal
      • compare

        public int compare​(Complex complex1,
                           Complex complex2)
        It will first look at the default properties of an interactor using AbstractInteractorBaseComparator. It will then compare the interaction types using AbstractCvtermComparator If the basic interactor properties are the same, It will first compare the collection of components using ComponentComparator. It will first look at the default properties of an interactor using UnambiguousInteractorBaseComparator. It will then compare interaction types using UnambiguousCvTermComparator. If the basic interactor properties are the same, It will first compare the collection of components using UnambiguousModelledParticipantComparator.
        Specified by:
        compare in interface Comparator<Complex>
        Overrides:
        compare in class ComplexComparator
        Parameters:
        complex1 - a Complex object.
        complex2 - a Complex object.
        Returns:
        a int.