com.hammurapi.common

## Class Joiner.CollectionAdapter<T>

- java.lang.Object
- - com.hammurapi.common.Joiner.CollectionAdapter<T>

- Type Parameters:
    `T` -
  All Implemented Interfaces:
    Joiner.Collector<T>, Iterable<T>
  Enclosing class:
    Joiner<T,C,R>

      public static class Joiner.CollectionAdapter<T>
      extends Object
      implements Joiner.Collector<T>

  Adapter for collections.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Joiner.CollectionAdapter(Collection<T> master)`

  - ### 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.
    `Iterator<T>` | `iterator()`
    `boolean` | `remove(T obj)` Removes object (last entry) from the collector.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Joiner.CollectionAdapter

          public Joiner.CollectionAdapter(Collection<T> master)

  - ### Method Detail

    - #### add

          public boolean add(T obj)

      Description copied from interface: `Joiner.Collector`
      Adds new object to the collector. This method shall not break currently open iterators.
      Specified by:
        `add` in interface `Joiner.Collector<T>`
      Returns:
        true if object was added to the collector.

    - #### clear

          public void clear()

      Description copied from interface: `Joiner.Collector`
      Removes all object from the collector.
      Specified by:
        `clear` in interface `Joiner.Collector<T>`

    - #### remove

          public boolean remove(T obj)

      Description copied from interface: `Joiner.Collector`
      Removes object (last entry) from the collector.
      Specified by:
        `remove` in interface `Joiner.Collector<T>`
      Returns:
        true if success

    - #### iterator

          public Iterator<T> iterator()

      Specified by:
        `iterator` in interface `Iterable<T>`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`