@ Nonnull public EChange setFrom ( @ Nonnull final MockEventListenerList aList ) { ValueEnforcer . notNull ( aList , "List" ) ; // Assigning this to this? if ( this == aList ) return EChange . UNCHANGED ; // Get all listeners to assign final ICommonsList < EventListener > aOtherListeners = aList . getAllListeners ( ) ; return m_aRWLock . writeLocked ( ( ) -> { if ( m_aListener . isEmpty ( ) && aOtherListeners . isEmpty ( ) ) return EChange . UNCHANGED ; m_aListener . setAll ( aOtherListeners ) ; return EChange . CHANGED ; } ) ; }
Set all listeners from the passed list to this list