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.
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 TypeMethodDescriptiondefault @NotNull ShortshortapplyAsShort(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 operandright- 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:
applyin interfaceBiFunction<Short,Short, Short>
-