Class AbstractStore<E extends Event,​D extends StoreDelegate<E>>

    • Constructor Detail

      • AbstractStore

        public AbstractStore()
    • Method Detail

      • setDelegate

        public void setDelegate​(D delegate)
        Description copied from interface: Store
        Sets the delegate on the store.
        Specified by:
        setDelegate in interface Store<E extends Event,​D extends StoreDelegate<E>>
        Parameters:
        delegate - new store delegate
      • unsetDelegate

        public void unsetDelegate​(D delegate)
        Description copied from interface: Store
        Withdraws the delegate from the store.
        Specified by:
        unsetDelegate in interface Store<E extends Event,​D extends StoreDelegate<E>>
        Parameters:
        delegate - store delegate to withdraw
      • hasDelegate

        public boolean hasDelegate()
        Description copied from interface: Store
        Indicates whether the store has a delegate.
        Specified by:
        hasDelegate in interface Store<E extends Event,​D extends StoreDelegate<E>>
        Returns:
        true if delegate is set
      • notifyDelegate

        protected void notifyDelegate​(E event)
        Notifies the delegate with the specified event.
        Parameters:
        event - event to delegate
      • notifyDelegate

        protected void notifyDelegate​(List<E> events)
        Notifies the delegate with the specified list of events.
        Parameters:
        events - list of events to delegate