Package org.eclipse.handly.util
Interface ICollector<E>
- Type Parameters:
E
- the type of collected elements
public interface ICollector<E>
A common protocol for collecting elements.
- Since:
- 1.5
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given element to this collector.void
addAll
(Collection<? extends E> c) Adds all of the elements contained in the given collection to this collector.
-
Method Details
-
add
Adds the given element to this collector.- Parameters:
e
- element to be added (notnull
)
-
addAll
Adds all of the elements contained in the given collection to this collector.- Parameters:
c
- collection containing elements to be added (notnull
)
-