|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- value typepublic interface Receiver<T>
A notification receiver.
This interface should be reused in any "fire-and-forget"-like pattern where the caller is simply sending a notification to the callee. For example, this interface should be used when implementing the Observer pattern.
Method Summary | |
---|---|
void |
apply(T value)
Receives a notification. |
Method Detail |
---|
void apply(T value)
value
- any additional details about the notification
|
ref_send API 2.17 defensive programming in Java |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.