Class InteractionInteractorComparator

    • Constructor Detail

      • InteractionInteractorComparator

        public InteractionInteractorComparator​(InteractorComparator interactorComparator)
        Creates a new InteractionInteractorComparator
        Parameters:
        interactorComparator - : interactor comparator required for comparing interactors involved in the interaction
    • Method Detail

      • compare

        public int compare​(Interaction interaction1,
                           Interaction interaction2)
        It will use a ParticipantInteractorComparator comparator for comparing the participants involved in the interaction. It will ignore all other properties of an Interaction
        Specified by:
        compare in interface Comparator<Interaction>
        Parameters:
        interaction1 - a Interaction object.
        interaction2 - a Interaction object.
        Returns:
        a int.