Class CollectConsumer<T>

  • All Implemented Interfaces:
    Consumer<T>

    public class CollectConsumer<T>
    extends Object
    implements Consumer<T>
    • Constructor Detail

      • CollectConsumer

        public CollectConsumer​(Collection<T> result)
      • CollectConsumer

        public CollectConsumer()
    • Method Detail

      • consume

        public void consume​(T t)
        Specified by:
        consume in interface Consumer<T>
        Parameters:
        t - consequently takes value of each element of the set this processor is passed to for processing. t is supposed to be a not-null value.