Interface ByteBinaryOperator

All Superinterfaces:
BiFunction<Byte,Byte,Byte>, BinaryOperator<@NotNull Byte>
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 ByteBinaryOperator extends BinaryOperator<@NotNull Byte>
Represents an operation on a single byte operand that produces a byte result. This is the primitive type specialization of UnaryOperator for byte.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull Byte
    apply(@NotNull Byte left, @NotNull Byte right)
     
    byte
    applyAsByte(byte left, byte right)
    Applies this operator to the given operands.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • applyAsByte

      byte applyAsByte(byte left, byte right)
      Applies this operator to the given operands.
      Parameters:
      left - the first operand
      right - the second operand
      Returns:
      result of applying this operation to the operands
    • apply

      @Contract("null, _ -> fail; _, null -> fail; _ -> _") @NotNull default @NotNull Byte apply(@NotNull @NotNull Byte left, @NotNull @NotNull Byte right)
      Specified by:
      apply in interface BiFunction<Byte,Byte,Byte>