Interface ByteToByteFunction

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 ByteToByteFunction
A function that accepts a byte and returns a byte.
Since:
1.2
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    apply(byte e)
    Applies the function.
    Returns the byte identity function.
  • Method Details

    • apply

      byte apply(byte e)
      Applies the function.
      Parameters:
      e - The argument.
      Returns:
      The result.
    • identity

      static ByteToByteFunction identity()
      Returns the byte identity function. The identity function always returns the input argument.
      Returns:
      The identity function.