Interface IntConsumer

All Known Implementing Classes:
IntSummaryStatistics
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IntConsumer
An operation on one int that answers nothing; the int form of Consumer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(int value)
    Performs this operation on value.
    default IntConsumer
    This operation followed by after, both given the same value.
  • Method Details

    • accept

      void accept(int value)
      Performs this operation on value.
      Parameters:
      value - the input
    • andThen

      default IntConsumer andThen(IntConsumer after)
      This operation followed by after, both given the same value. If this operation throws, after does not run.
      Parameters:
      after - the operation to run next
      Returns:
      the composed operation