Package it.unimi.dsi.fastutil.longs
Interface LongBinaryOperator
-
- All Superinterfaces:
java.util.function.BiFunction<java.lang.Long,java.lang.Long,java.lang.Long>
,java.util.function.BinaryOperator<java.lang.Long>
,java.util.function.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 java.util.function.BinaryOperator<java.lang.Long>, java.util.function.LongBinaryOperator
A type-specificBinaryOperator
; provides methods operating both on objects and on primitives.- Since:
- 8.5.0
- See Also:
BinaryOperator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description long
apply(long x, long y)
Computes the operator on the given inputs.default java.lang.Long
apply(java.lang.Long x, java.lang.Long y)
Deprecated.Please use the corresponding type-specific method instead.default long
applyAsLong(long x, long y)
Deprecated.Please useapply(long, long)
.
-
-
-
Method Detail
-
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 default long applyAsLong(long x, long y)
Deprecated.Please useapply(long, long)
.- Specified by:
applyAsLong
in interfacejava.util.function.LongBinaryOperator
- Implementation Specification:
- This default implementation delegates to
apply(long, long)
.
-
apply
@Deprecated default java.lang.Long apply(java.lang.Long x, java.lang.Long y)
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
apply
in interfacejava.util.function.BiFunction<java.lang.Long,java.lang.Long,java.lang.Long>
-
-