ix.util
Interface Collector
- All Known Implementing Classes:
- HashedSet, 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
addElement
public void addElement(java.lang.Object e)
result
public java.lang.Object result()