@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.IntBinaryOperatorjava.lang.IllegalArgumentException - If the given operands are not an element of the key domain.@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>