ix.util
Interface Collector
- All Known Implementing Classes:
- HashedSet, ListCollector
- public abstract interface Collector
A Collector can be given new elements and can return an Enumeration
of the elements it has been given so far. However, the Enumeration
is not necessarily a snapshot.
The name "Collector" was chosen to avoid taking "Collection",
and hence to avoid conflicts with various collection packages.
- See Also:
Seq
,
ListCollector
addElement
public void addElement(java.lang.Object e)
elements
public java.util.Enumeration elements()