Class AbstractProvider<E>

  • Type Parameters:
    E - type of the provided elements
    All Implemented Interfaces:
    Provider<E>
    Direct Known Subclasses:
    AbstractManagedProvider

    @NonNullByDefault
    public abstract class AbstractProvider<@NonNull E>
    extends Object
    implements Provider<E>
    AbstractProvider can be used as base class for Provider implementations. It supports the registration and notification of listeners.
    Author:
    Dennis Nobel - Initial contribution
    • Constructor Detail

      • AbstractProvider

        public AbstractProvider()
    • Method Detail

      • notifyListenersAboutAddedElement

        protected void notifyListenersAboutAddedElement​(@NonNull E element)
      • notifyListenersAboutRemovedElement

        protected void notifyListenersAboutRemovedElement​(@NonNull E element)
      • notifyListenersAboutUpdatedElement

        protected void notifyListenersAboutUpdatedElement​(@NonNull E oldElement,
                                                          @NonNull E element)