com.hammurapi.common

## Interface Joiner.Collector<T>

- Type Parameters:
    `T` -
  All Superinterfaces:
    Iterable<T>
  All Known Implementing Classes:
    Joiner.CollectionAdapter
  Enclosing class:
    Joiner<T,C,R>

      public static interface Joiner.Collector<T>
      extends Iterable<T>

  Collector of objects to join. Implements a subset of collection methods.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `add(T obj)` Adds new object to the collector.
    `void` | `clear()` Removes all object from the collector.
    `boolean` | `remove(T obj)` Removes object (last entry) from the collector.

    - ### Methods inherited from interface java.lang.Iterable

      `iterator`

- - ### Method Detail

    - #### add

          boolean add(T obj)

      Adds new object to the collector. This method shall not break currently open iterators.
      Parameters:
        `obj` -
      Returns:
        true if object was added to the collector.

    - #### remove

          boolean remove(T obj)

      Removes object (last entry) from the collector.
      Parameters:
        `obj` -
      Returns:
        true if success

    - #### clear

          void clear()

      Removes all object from the collector.