@FunctionalInterface
public interface ByteBinaryOperator
extends java.util.function.BinaryOperator<java.lang.Byte>, java.util.function.IntBinaryOperator
BinaryOperator
; provides methods operating both on objects
and on primitives.BinaryOperator
Modifier and Type | Method and Description |
---|---|
byte |
apply(byte x,
byte y)
Computes the operator on the given inputs.
|
default java.lang.Byte |
apply(java.lang.Byte x,
java.lang.Byte y)
Deprecated.
Please use the corresponding type-specific method instead.
|
default int |
applyAsInt(int x,
int y)
Deprecated.
Please use
apply(byte, byte) . |
byte apply(byte x, byte y)
x
- the first input.y
- the second input.@Deprecated default int applyAsInt(int x, int y)
apply(byte, byte)
.applyAsInt
in interface java.util.function.IntBinaryOperator
java.lang.IllegalArgumentException
- If the given operands are not an element of the key domain.apply(byte, byte)
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.Byte apply(java.lang.Byte x, java.lang.Byte y)
apply
in interface java.util.function.BiFunction<java.lang.Byte,java.lang.Byte,java.lang.Byte>