Interface ShortConsumer

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

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

    • accept

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

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