Interface ByteConsumer

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

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

    • accept

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

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