Subject< T extends Observer< U, U extends Event > Interface Template Reference
Inheritance diagram for Subject< T extends Observer< U, U extends Event >:
Public Member Functions | |
void | subscribe (T observer) throws CannotSubscribeException |
void | unSubscribe (T observer) throws ObserverNotSubscribedException |
Detailed Description
Subject
Member Function Documentation
void subscribe | ( | T | observer | ) | throws CannotSubscribeException |
Subscribes to the subject
- Parameters
-
observer subject observer
- Exceptions
-
CannotSubscribeException
void unSubscribe | ( | T | observer | ) | throws ObserverNotSubscribedException |
Unsubscribes from the subject
- Parameters
-
observer subject observer
- Exceptions
-
CannotSubscribeException