Package it.unimi.dsi.fastutil.longs
Interface LongBinaryOperator
- All Superinterfaces:
BiFunction<Long,Long,Long>
,BinaryOperator<Long>
,LongBinaryOperator
- 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 LongBinaryOperator extends BinaryOperator<Long>, LongBinaryOperator
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 long
apply(long x, long y)
Computes the operator on the given inputs.default Long
apply(Long x, Long y)
Deprecated.Please use the corresponding type-specific method instead.default long
applyAsLong(long x, long y)
Deprecated.Please useapply(long, long)
.Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
apply
long apply(long x, long 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.
-
applyAsLong
Deprecated.Please useapply(long, long)
.- Specified by:
applyAsLong
in interfaceLongBinaryOperator
- Implementation Specification:
- This default implementation delegates to
apply(long, long)
.
-
apply
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
apply
in interfaceBiFunction<Long,Long,Long>
-