Interface Consumer<T>


public interface Consumer<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Consumer
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
  • Field Details

    • EMPTY_CONSUMER

      static final Consumer EMPTY_CONSUMER
  • Method Details

    • consume

      void consume(T 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. If you need to pass nulls to the consumer use
      invalid reference
      NullableConsumer
      instead