Interface Collector<V>

  • Type Parameters:
    V - the collected type
    All Known Implementing Classes:
    NullImplementation.NullCollector

    public interface Collector<V>
    A Collector is mechanism for receiving items.
    Author:
    mf 2010.10.06
    • Method Detail

      • add

        void add​(V value)
        Notify the collector of a item of interest.
        Parameters:
        value - the item to collect
      • flush

        default void flush()
        Request processing of any added values.

        This method should be called after a call or series of calls to add(V).