Interface Collector<V>

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

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

      • add

        void add​(V value)
        Notify the collector of a item of interest.
        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).