|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - The type of the consumed subjectsEX - The throwable type that consume(Object) may throwpublic interface ConsumerWhichThrows<T,EX extends java.lang.Throwable>
Like Consumer, but the consume(Object) method is permitted to throw a given exception.
ConsumerWhichThrows<consumed-type, thrown-exception>, but always
ConsumerWhichThrows<? super consumed-type, ? extends thrown-exception>.
| Method Summary | |
|---|---|
void |
consume(T subject)
Consumes one subject of type T. |
| Method Detail |
|---|
void consume(T subject)
throws EX extends java.lang.Throwable
subject of type T.
Generally subjects should either be immutable, or the 'ownership' of the product should pass from the caller to the consumer. Particularly, the consumer should not be called with one (mutable) instance more than once.
EX extends java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||