@FunctionalInterface
public interface ShortBinaryOperator
extends java.util.function.BinaryOperator<java.lang.Short>, java.util.function.IntBinaryOperator
BinaryOperator
; provides methods operating both on objects
and on primitives.BinaryOperator
Modifier and Type | Method and Description |
---|---|
short |
apply(short x,
short y)
Computes the operator on the given inputs.
|
default java.lang.Short |
apply(java.lang.Short x,
java.lang.Short y)
Deprecated.
Please use the corresponding type-specific method instead.
|
default int |
applyAsInt(int x,
int y)
Deprecated.
Please use
apply(short, short) . |
short apply(short x, short y)
x
- the first input.y
- the second input.@Deprecated default int applyAsInt(int x, int y)
apply(short, short)
.applyAsInt
in interface java.util.function.IntBinaryOperator
java.lang.IllegalArgumentException
- If the given operands are not an element of the key domain.apply(short, short)
after narrowing down the arguments to the
actual key type, throwing an exception if the arguments cannot be
represented in the restricted domain. This is done for interoperability
with the Java 8 function environment. The use of this method discouraged, as
unexpected errors can occur.@Deprecated default java.lang.Short apply(java.lang.Short x, java.lang.Short y)
apply
in interface java.util.function.BiFunction<java.lang.Short,java.lang.Short,java.lang.Short>