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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(E e)Adds the given element to this collector.voidaddAll(java.util.Collection<? extends E> c)Adds all of the elements contained in the given collection to this collector.
-
-
-
Method Detail
-
add
void add(E e)
Adds the given element to this collector.- Parameters:
e- element to be added (notnull)
-
addAll
void addAll(java.util.Collection<? extends E> c)
Adds all of the elements contained in the given collection to this collector.- Parameters:
c- collection containing elements to be added (notnull)
-
-