Interface DuplicationStrategy

    • Method Detail

      • areMatch

        boolean areMatch​(java.lang.Object listener,
                         java.lang.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