Class AbstractCollector<E>

  • Type Parameters:
    E - the type
    All Implemented Interfaces:
    Collector<E>

    public abstract class AbstractCollector<E>
    extends java.lang.Object
    implements Collector<E>
    Base collector.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void combine​(java.lang.Object object)
      This method should be called by the intermediate touch points that want to combine the data being collected by this collector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractCollector

        public AbstractCollector()
    • Method Detail

      • combine

        public void combine​(java.lang.Object object)
        Description copied from interface: Collector
        This method should be called by the intermediate touch points that want to combine the data being collected by this collector. This is an optional method and could be used when the same collector is used for collecting data at multiple touch points or accumulating data at same touch point.
        Specified by:
        combine in interface Collector<E>
        Parameters:
        object - Object