Interface Store<E extends Event,​D extends StoreDelegate<E>>

    • Method Detail

      • setDelegate

        void setDelegate​(D delegate)
        Sets the delegate on the store.
        Parameters:
        delegate - new store delegate
        Throws:
        IllegalStateException - if a delegate is already currently set on the store and is a different one that
      • unsetDelegate

        void unsetDelegate​(D delegate)
        Withdraws the delegate from the store.
        Parameters:
        delegate - store delegate to withdraw
        Throws:
        IllegalArgumentException - if the delegate is not currently set on the store
      • hasDelegate

        boolean hasDelegate()
        Indicates whether the store has a delegate.
        Returns:
        true if delegate is set