Interface ShortBinaryOperator

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

    Modifier and Type
    Method
    Description
    default @NotNull Short
    apply(@NotNull Short left, @NotNull Short right)
     
    short
    applyAsShort(short left, short right)
    Applies this operator to the given operands.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • applyAsShort

      short applyAsShort(short left, short 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 Short apply(@NotNull @NotNull Short left, @NotNull @NotNull Short right)
      Specified by:
      apply in interface BiFunction<Short,Short,Short>