Class UnambiguousExactParticipantInteractorComparator

  • All Implemented Interfaces:
    Comparator<Entity>

    public class UnambiguousExactParticipantInteractorComparator
    extends ParticipantInteractorComparator<Entity>
    It will compare the interactors using UnambiguousExactInteractorComparator. This comparator will ignore all the other properties of a participant.
    Since:
    30/05/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • UnambiguousExactParticipantInteractorComparator

        public UnambiguousExactParticipantInteractorComparator()
        Creates a new UnambiguousExactParticipantInteractorComparator. It will use a UnambiguousExactInteractorBaseComparator to compare interactors.
    • Method Detail

      • compare

        public int compare​(Entity participant1,
                           Entity participant2)
        It will compare the interactors using InteractorComparator. This comparator will ignore all the other properties of a participant. It will compare the interactors using UnambiguousInteractorComparator. This comparator will ignore all the other properties of a participant.
        Specified by:
        compare in interface Comparator<Entity>
        Overrides:
        compare in class ParticipantInteractorComparator<Entity>
        Parameters:
        participant1 - a T object.
        participant2 - a T object.
        Returns:
        a int.
      • areEquals

        public static boolean areEquals​(Entity participant1,
                                        Entity participant2)
        Use UnambiguousExactParticipantInteractorComparator to know if two participants are equals.
        Parameters:
        participant1 - a Entity object.
        participant2 - a Entity object.
        Returns:
        true if the two participants are equal