public interface Store<E extends Event,D extends StoreDelegate<E>>
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasDelegate()
Indicates whether the store has a delegate.
|
void |
setDelegate(D delegate)
Sets the delegate on the store.
|
void |
unsetDelegate(D delegate)
Withdraws the delegate from the store.
|
void setDelegate(D delegate)
delegate - new store delegatejava.lang.IllegalStateException - if a delegate is already
currently set on the store and is a different one thatvoid unsetDelegate(D delegate)
delegate - store delegate to withdrawjava.lang.IllegalArgumentException - if the delegate is not
currently set on the storeboolean hasDelegate()