Package it.unimi.dsi.fastutil.ints
Interface IntBinaryOperator
- All Superinterfaces:
java.util.function.BiFunction<java.lang.Integer,java.lang.Integer,java.lang.Integer>
,java.util.function.BinaryOperator<java.lang.Integer>
,java.util.function.IntBinaryOperator
- 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 IntBinaryOperator
extends java.util.function.BinaryOperator<java.lang.Integer>, java.util.function.IntBinaryOperator
A type-specific
BinaryOperator
; provides methods operating both on
objects and on primitives.- Since:
- 8.5.0
- See Also:
BinaryOperator
-
Method Summary
Modifier and Type Method Description int
apply(int x, int y)
Computes the operator on the given inputs.default java.lang.Integer
apply(java.lang.Integer x, java.lang.Integer y)
Deprecated.Please use the corresponding type-specific method instead.default int
applyAsInt(int x, int y)
Deprecated.Please useapply(int, int)
.Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
apply
int apply(int x, int y)Computes the operator on the given inputs.- Parameters:
x
- the first input.y
- the second input.- Returns:
- the output of the operator on the given inputs.
-
applyAsInt
@Deprecated default int applyAsInt(int x, int y)Deprecated.Please useapply(int, int)
.- Specified by:
applyAsInt
in interfacejava.util.function.IntBinaryOperator
- Implementation Specification:
- This default implementation delegates to
apply(int, int)
.
-
apply
@Deprecated default java.lang.Integer apply(java.lang.Integer x, java.lang.Integer y)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
apply
in interfacejava.util.function.BiFunction<java.lang.Integer,java.lang.Integer,java.lang.Integer>
-