Interface DuplicationStrategy

    • Method Detail

      • areMatch

        boolean areMatch​(Object listener,
                         Object original)
        Are the two listener instances considered a duplication?
        Parameters:
        listener - The listener we are currently trying to register
        original - An already registered listener
        Returns:
        true if the two instances are considered a duplication; false otherwise
      • getAction

        DuplicationStrategy.Action getAction()
        How should a duplication be handled?
        Returns:
        The strategy for handling duplication