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 Type
  Method
  Description
  `void`
  `add(E e)`
  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

    void add(E e)
    Adds the given element to this collector.
    Parameters:
      `e` - element to be added (not `null`)

  - ### addAll

    void addAll(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 (not `null`)