ix.util
Interface Collector

All Known Implementing Classes:
LListCollector

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.

See Also:
LListCollector

Method Summary
 void addElement(java.lang.Object e)
           
 java.lang.Object result()
           
 

Method Detail

addElement

void addElement(java.lang.Object e)

result

java.lang.Object result()