Interface CharConsumer

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 CharConsumer
Functional interface to apply an operation to a single char.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(char value)
    Apply this operation to value.
    default CharConsumer
    andThen(@NotNull CharConsumer after)
    Return a composed CharConsumer that applies this operation followed by after.
  • Method Details

    • accept

      void accept(char value)
      Apply this operation to value.
      Parameters:
      value - The char to operate one
    • andThen

      default CharConsumer andThen(@NotNull @NotNull CharConsumer after)
      Return a composed CharConsumer that applies this operation followed by after.
      Parameters:
      after - The CharConsumer to apply after applying this
      Returns:
      A composed CharConsumer that applies this followed by after