|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Consumer<I>
Implementors of this interface can process instances of a specific class. It is used to process stable models as they are generated by smodels so that, in case there are many models, they don't have to be remembered in the memory until we have all of them. Instead of that they are passed one by one the a model consumer.
Method Summary | |
---|---|
void |
afterConsuming()
If the consumer is used to process a sequence of instances, this method should be called after the sequence ends. |
void |
beforeConsuming()
If the consumer is used to process a sequence of instances, this method should be called before the sequence begins. |
void |
consume(I item)
Consume item . |
Method Detail |
---|
void consume(I item)
item
.
item
- the item to consumevoid beforeConsuming()
void afterConsuming()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |