|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Collector
A Collector can be given new elements and can return the "result" derived from those elements. For example, if the elements are numbers, the result might be their sum.
The name "Collector" was chosen to avoid taking "Collection", and hence to avoid conflicts with various collection packages.
LListCollector
Method Summary | |
---|---|
void |
addElement(java.lang.Object e)
|
java.lang.Object |
result()
|
Method Detail |
---|
void addElement(java.lang.Object e)
java.lang.Object result()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |