Class ParticipantInteractorComparator<T extends Entity>

    • Constructor Detail

      • ParticipantInteractorComparator

        public ParticipantInteractorComparator​(InteractorComparator interactorComparator)
        Creates a new ParticipantInteractorComparator.
        Parameters:
        interactorComparator - : the interactor comparator required to compare the interactor
    • Method Detail

      • setInteractorComparator

        public void setInteractorComparator​(InteractorComparator interactorComparator)

        Setter for the field interactorComparator.

        Parameters:
        interactorComparator - a InteractorComparator object.
      • compare

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